Code a Neural Network from scratch in Python



In this article I will be showing you how to code a Neural Network from scratch. Most of us use modern libraries like TensorFlow and Keras to code a Neural Network in a few lines of code. But if you want to have a clear understanding of Neural Networks you must know how to code it from scratch.

I hope you will like this article and it will help aspiring data scientist. So let’s start by understanding what a neural network is.

What is a Neural Network?

Neural Network is based on the belief that human brain makes right decisions by making right connections which are done through neurons. The artificial neural network comprises of –

> type * (asterisk) > An input layer x,

> type * (asterisk) > A number of hidden units,

> type * (asterisk) > An output layer ŷ,

> type * (asterisk) > A set of Weights W and biases b,

> type * (asterisk) > A choice of activation function at each hidden layer σ.

Source: Deep Learning on Medium