Implementing Backpropagation in Python: Building a Neural Network from Scratch

Implementing Backpropagation in Python: Building a Neural Network from Scratch

In today’s post, I will implement a matrix-based backpropagation algorithm with gradient descent in Python. For this purpose, we’ll only use the Numpy library to explain a bit of the mathematics behind the process (mainly multivariate calculus). To better cement the concept, we’ll build an XOR neural network (a network that learns to behave like…

How To Build a Feedforward Neural Network In Python

How To Build a Feedforward Neural Network In Python

Welcome back to another Python post. Today’s topic is about how to create a feedforward neural network in Python, from scratch. That means, without using Tensorflow, Keras, Pytorch, etc. The main library we’ll be using is numpy, which is the computing library for Python. I usually like to understand the underlying concepts of how things…