Skip to content

This is a neural network built from scratch using only Numpy.

Notifications You must be signed in to change notification settings

evanburger/neural_network

Repository files navigation

Neural Network Implementation from Scratch

I've always wanted to build a working ANN from the ground up (the ground being Numpy in this case). It can be used by importing the class and instantiating from it. Then you can train it and use it to make predictions.

"sigmoid" is used for sigmoid activation and "relu" is used for leaky ReLU.

neural_net.py can be used to instantiate a model and train it.
mnist_reader.py provides functionality to read the IDX format that the MNIST data is traditionally stored in.
mnist_net.py is a script with functions to speed up the process of reading the IDX data files, storing them to a simple database as well as setting up the network.
mnist_model_89.p is for a model that was trained up to 89% accuracy. It's a binary file storing a tuple saved by the pickle module. The first two items are the weight layers and the last item is the activation function that was used.

About

This is a neural network built from scratch using only Numpy.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages