
Explore neural networks in Python from scratch, learning theory, math, and step-by-step implementations without libraries, then master multilayer networks and real-world applications with TensorFlow and PyTorch.
Explore the plan of attack for neural networks from scratch, introducing the single-layer perceptron, its learning process, core applications, and a step-by-step Python numpy implementation.
Explore modern neural network applications from facial recognition and self-driving cars to medicine, stock forecasting, language translation, and generative adversarial networks, highlighting data-driven, complex problems.
Explore how the artificial neuron processes inputs through weights and the sum and activation functions, illustrating a perceptron with examples like salary forecast.
Explore the perceptron by applying the sum of inputs X and weights W, then using a step activation to determine firing, with examples showing how weights shape outcomes.
Build a single-layer perceptron in Python using a sum function and a step function with inputs and weights, and compute the final binary output that indicates a salary increase.
Train a perceptron to learn an and operator by updating zero-initialized weights using a learning rate, sum and step functions on a 0/1 dataset.
Continue training a perceptron by updating weights with learning rate 0.1, computing sums and step outputs across instances, and tracking errors through epochs toward correct classifications.
Implement a perceptron update using zero-initialized weights to classify four binary inputs, applying the dot product, step function, and learning rate 0.1 to train the model.
Implement a Python perceptron training workflow by initializing weights, computing outputs, and updating weights with a learning rate across epochs until errors vanish, then test on salary prediction.
Train perceptrons on or and operator examples, adjusting weights with a learning rate to observe outputs. Note that xor requires a multilayer network and goes beyond single-layer perceptrons.
Demonstrate solving a homework using a simple neural network perceptron from scratch, normalize inputs with min-max scaling, and visualize linearly separable data to predict salary increases.
Plan of attack shifts from single-layer perceptrons to multilayer networks, introduces sigmoid activation, and covers gradient descent, backpropagation, and a from-scratch multilayer perceptron in Python with numpy, using xor.
Explore multilayer neural networks, introducing the multilayer perceptron with a hidden layer, feed-forward computation, and activation in each neuron to handle non linear problems.
Explore activation functions in neural networks, including step, sigmoid, and hyperbolic tangent, and their output ranges from 0 to 1 or -1 to 1, as used in perceptrons.
Implement a sigmoid function in Python using NumPy for a multi layer perceptron, with compact code and tests like 50, 0, and -25.5, while explaining exp and Euler number.
Learn how to adjust weights in a multilayer neural network through feed-forward from input to the hidden layer, using random initialization and sigmoid activation.
Perform feedforward calculations for the hidden layer of a multilayer neural network, computing sums of inputs and weights for the three neurons across multiple instances and applying the sigmoid activation.
Implement step-by-step calculations for data flow from the input layer to the hidden layer in a multilayer perceptron, applying the sum and activation functions across 100 epochs with NumPy matrices.
Continue the feedforward pass by using hidden-layer activations to compute output-layer activations with a sum and sigmoid. Show the final output values for several instances and preview the error calculation.
Implement the hidden-to-output flow in a multilayer perceptron to complete feed-forward processing by computing dot products of hidden activations with weights and applying the sigmoid to form the output layer.
Compare predictions with the expected outputs to calculate the error, also called the loss function. Adjusting weights after averaging the absolute errors shows learning correlations between inputs and outputs.
Implement the error formula for the multilayer perceptron by computing per-instance errors from predicted versus expected outputs, then average them, using abs to align with the theoretical result.
Visualize the multilayer neural network algorithm, from random weight initialization to updating weights via gradient descent and backpropagation, using sum and activation functions, with loss concepts and epoch-based learning.
Learn how gradient descent updates neural network weights using partial derivatives to move toward the global minimum, guided by the sigmoid cost function across epochs.
We implement the sigmoid derivative to guide weight updates, computing s = sigmoid(0.5) ≈ 0.62 and its derivative ≈ 0.23 for learning in a multilayer perceptron.
Compute the delta for the output layer as error times the sigmoid derivative to guide weight updates, then use these deltas in the reverse process to move toward global minimum.
Implement the delta calculation for the output layer in Python, applying the sigmoid derivative to each output and multiplying by the output error to obtain delta output.
Compute the hidden layer delta by applying the sigmoid derivative to each activation and multiplying by the corresponding delta outputs and weights to guide gradient-based weight updates.
Compute the delta for the hidden layer by multiplying delta outputs with the transposed weights and applying the sigmoid derivative across three hidden neurons.
Apply backpropagation to update neural network weights from output to input using gradient descent, delta parameters, and learning rate, balancing convergence toward the global minimum.
Update weights from the hidden to the output layer by inputs times deltas across instances, using a 0.3 learning rate to compute new weights for all three hidden neurons.
Update and compare hidden-to-output weights in a multilayer perceptron using delta outputs, transpose inputs, and dot products to reproduce learning with a 0.3 learning rate.
Update the hidden-to-output weights using input times delta and a learning rate of 0.3, completing the first epoch. Reiterate the feedforward and backpropagation steps to reduce error.
Update the input-to-hidden weights by multiplying inputs by the hidden-layer deltas, transpose the input layer, and apply the learning rate to complete the first epoch of the neural network.
Implement a multilayer perceptron from scratch by looping over epochs, using random weights and sigmoid activations. Track training error and test on the XOR problem, using plots to judge epochs.
Master the bias unit, compute error with mean squared and root mean squared error, and encode outputs for multi-class problems using multiple output neurons.
Use the inputs plus outputs divided by two to set the hidden layer size, then test. Two-layer networks are a good starting point for non-linear, complex problems like credit risk.
Explore gradient descent to minimize error and navigate non-convex surface with batch, stochastic, and mini-batch updates, avoiding local minima while tuning batch size. See how stochastic updates avoid local minima.
Explore deep learning foundations and neural networks with two or more hidden layers; examine CNNs, RNNs, autoencoders, GANs, and their use in image classification and natural language processing.
classify loan default with a from-scratch neural network, loading csv data, dropping missing ages, scaling inputs with min-max scaler, and using two hidden layers trained with 10,000 epochs.
Plan of attack covers implementing neural networks with PyBrain, scikit-learn, TensorFlow, and PyTorch; from XOR and iris to house-price regression and cancer image classification.
Explore pybrain by building a feed-forward neural network in Google Colab, configuring input, hidden, and output layers with sigmoid activation, full connections, and bias units.
Learn to implement a neural network using the Pi brain library to solve the XOR problem and compare results with a manual implementation.
Build and train a two-hidden-layer neural network in PyBrain to classify iris species using backpropagation on the iris dataset, with softmax output and one-hot encoding.
Learn to use scikit-learn's neural network tools, specifically mlpclassifier, to classify iris species (setosa, versicolor, virginica) from sepal and petal measurements, with an 80/20 train-test split.
Apply scikit-learn's mlpClassifier to build and train a neural network for multiclass classification, exploring activations, solvers, learning rate, batch size, hidden layers, and early stopping.
Evaluate the trained neural network on a 30-instance test set using accuracy score and confusion matrix. Visualize results with Yellowbrick and classify an instance to reveal iris target names.
Apply neural networks to regression using sklearn's mlp regressor, scale inputs with a min-max scaler, train on the Boston housing dataset, and evaluate with mean absolute error and rmse.
Train an mlp classifier on the sklearn wine dataset to classify wine quality into three classes using 13 features and a two-hidden-layer network; achieve about 91% accuracy.
Leverage TensorFlow for image classification with convolutional and recurrent networks and GPU acceleration. Prepare MNIST data by reshaping 28x28 images to 784 inputs, normalizing to 0-1, and one-hot encoding labels.
Build a TensorFlow neural network with a 784-input, two 397-neuron hidden layers using relu, and a 10-class softmax output, optimized with Adam and categorical cross-entropy, achieving 99% training accuracy.
Train a handwritten digit classifier with TensorFlow, monitor loss and accuracy during training, evaluate on the test set, and use predictions and argmax to identify the final class.
Solve the homework using TensorFlow 2.0 to classify fashion mnist images with a neural network of dense layers, relu activations, softmax output, and sparse categorical cross entropy.
Build a PyTorch neural network with 30 inputs, two 16-neuron hidden layers, and an output for binary classification using sigmoid activation. Train with BCE loss and Adam for 100 epochs.
Finish implementing a neural network in PyTorch and switch to evaluation mode. Evaluate with test data using a 0.5 threshold, achieving 91% accuracy and showing a confusion matrix.
Build a from-scratch neural network in Python to predict diabetes from eight features like pregnancies and blood pressure, using normalization, an 8-5-5-1 architecture, sigmoid output, and cross-entropy loss.
review the course on artificial neural networks in Python, covering perceptron basics, x or operator, iris classification, and neural network parameters with pybrain, sklearn, TensorFlow, and PyTorch.
Artificial neural networks are considered to be the most efficient Machine Learning techniques nowadays, with companies the likes of Google, IBM and Microsoft applying them in a myriad of ways. You’ve probably heard about self-driving cars or applications that create new songs, poems, images and even entire movie scripts! The interesting thing about this is that most of these were built using neural networks. Neural networks have been used for a while, but with the rise of Deep Learning, they came back stronger than ever and now are seen as the most advanced technology for data analysis.
One of the biggest problems that I’ve seen in students that start learning about neural networks is the lack of easily understandable content. This is due to the fact that the majority of the materials that are available are very technical and apply a lot of mathematical formulas, which simply makes the learning process incredibly difficult for whomever wishes to take their first steps in this field. With this in mind, the main objective of this course is to present the theoretical and mathematical concepts of neural networks in a simple yet thorough way, so even if you know nothing about neural networks, you’ll understand all the processes. We’ll cover concepts such as perceptrons, activation functions, multilayer networks, gradient descent and backpropagation algorithms, which form the foundations through which you will understand fully how a neural network is made. We’ll also cover the implementations on a step-by-step basis using Python, which is one of the most popular programming languages in the field of Data Science. It’s important to highlight that the step-by-step implementations will be done without using Machine Learning-specific Python libraries, because the idea behind this course is for you to understand how to do all the calculations necessary in order to build a neural network from scratch.
To sum it all up, if you wish to take your first steps in Deep Learning, this course will give you everything you need. It’s also important to note that this course is for students who are getting started with neural networks, therefore the explanations will deliberately be slow and cover each step thoroughly in order for you to learn the content in the best way possible. On the other hand, if you already know your way around neural networks, this course will be very useful for you to revise and review some important concepts.
Are you ready to take the next step in your professional career? I’ll see you in the course!