𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Neural Networks from Scratch in Python: Building Neural Networks in Raw Python

✍ Scribed by Harrison Kinsley; Daniel KukieΕ‚a


Publisher
Harrison Kinsley
Tongue
English
Leaves
666
Edition
1
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Table of Contents


Acknowledgements
Copyright
License for Code
Readme
Introducing Neural Networks
A Brief History
What is a Neural Network?
Coding Our First Neurons
A Single Neuron
A Layer of Neurons
Tensors, Arrays and Vectors
Dot Product and Vector Addition
A Single Neuron with NumPy
A Batch of Data
Matrix Product
Transposition for the Matrix Product
A Layer of Neurons & Batch of Data w/ NumPy
Adding Layers
Training Data
Dense Layer Class
Full code up to this point:
Activation Functions
The Step Activation Function
The Linear Activation Function
The Sigmoid Activation Function
The Rectified Linear Activation Function
Why Use Activation Functions?
Linear Activation in the Hidden Layers
ReLU Activation in a Pair of Neurons
ReLU Activation in the Hidden Layers
ReLU Activation Function Code
The Softmax Activation Function
Full code up to this point:
Calculating Network Error with Loss
Categorical Cross-Entropy Loss
The Categorical Cross-Entropy Loss Class
Combining everything up to this point:
Accuracy Calculation
Introducing Optimization
Full code up to this point:
Derivatives
The Impact of a Parameter on the Output
The Slope
The Numerical Derivative
The Analytical Derivative
Summary
Gradients, Partial Derivatives, and the Chain Rule
The Partial Derivative
The Partial Derivative of a Sum
The Partial Derivative of Multiplication
The Partial Derivative of Max
The Gradient
The Chain Rule
Summary
Backpropagation
Categorical Cross-Entropy loss derivative
Categorical Cross-Entropy loss derivative code implementation
Softmax activation derivative
Softmax activation derivative code implementation
Common Categorical Cross-Entropy loss and Softmax activation derivative
Common Categorical Cross-Entropy loss and Softmax activation derivative - code implementation
Full code up to this point:
Optimizers
Stochastic Gradient Descent (SGD)
Learning Rate
Learning Rate Decay
Stochastic Gradient Descent with Momentum
AdaGrad
RMSProp
Adam
Full code up to this point:
Testing with Out-of-Sample Data
Validation Data
Training Dataset
L1 and L2 Regularization
Forward Pass
Backward pass
Dropout
Forward Pass
Backward Pass
The Code
Binary Logistic Regression
Sigmoid Activation Function
Sigmoid Function Derivative
Sigmoid Function Code
Binary Cross-Entropy Loss
Binary Cross-Entropy Loss Derivative
Binary Cross-Entropy Code
Implementing Binary Logistic Regression and Binary Cross-Entropy Loss
Full code up to this point:
Regression
Linear Activation
Mean Squared Error Loss
Mean Squared Error Loss Derivative
Mean Squared Error (MSE) Loss Code
Mean Absolute Error Loss
Mean Absolute Error Loss Derivative
Mean Absolute Error Loss Code
Accuracy in Regression
Regression Model Training
Full code up to this point:
Model Object
Full code up to this point:
A Real Dataset
Data preparation
Data loading
Data preprocessing
Data Shuffling
Batches
Training
Full code up to now:
Model Evaluation
Saving and Loading Models and Their Parameters
Retrieving Parameters
Setting Parameters
Saving Parameters
Loading Parameters
Saving the Model
Loading the Model
Prediction / Inference
Full code:
Closing


πŸ“œ SIMILAR VOLUMES


Neural Networks from Scratch in Python
✍ Harrison Kinsley, Daniel KukieΕ‚a πŸ“‚ Library πŸ“… 2020 🌐 English

"Neural Networks From Scratch" is a book intended to teach you how to build neural networks on your own, without any libraries, so you can better understand deep learning and how all of the elements work. This is so you can go out and do new/novel things with deep learning as well as to become more

Building Neural Networks from Scratch wi
✍ Knowings, L.D. πŸ“‚ Library πŸ“… 2023 πŸ› Independently Published 🌐 English

Ready to throw your hat into the AI and machine learning ring? Get started right here, right now! Are you sick of these machine-learning guides that don’t really teach you anything? Do you already know Python, but you’re looking to expand your horizons and skills with the language? Do you want to

Ultimate Neural Network Programming with
✍ Vishal Rajput; πŸ“‚ Library πŸ“… 2023 πŸ› Orange Education PVT Ltd 🌐 English

Master Neural Networks for Building Modern AI Systems. Book Description This book is a practical guide to the world of Artificial Intelligence (AI), unraveling the math and principles behind applications like Google Maps and Amazon. The book starts with an introduction to Python and AI, demys

Hands-On Neural Networks: Learn how to b
✍ Leonardo De Marchi, Laura Mitchell πŸ“‚ Library πŸ“… 2019 πŸ› Packt Publishing 🌐 English

Design and create neural networks with deep learning and artificial intelligence principles using OpenAI Gym, TensorFlow, and Keras Key Features β€’ Explore neural network architecture and understand how it functions β€’ Learn algorithms to solve common problems using back propagation and perceptro

Image Processing using Pulse-Coupled Neu
✍ Thomas Lindblad, Jason M. Kinser (auth.) πŸ“‚ Library πŸ“… 2013 πŸ› Springer-Verlag Berlin Heidelberg 🌐 English

<p>Image processing algorithms based on the mammalian visual cortex are powerful tools for extraction information and manipulating images. This book reviews the neural theory and translates them into digital models. Applications are given in areas of image recognition, foveation, image fusion and in