Skip to content

A Neural Network from pure Python (numpy) and trained it on the MNIST digit dataset.

Notifications You must be signed in to change notification settings

alrifat2/mnist_classifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

MNIST Classifier using Python & numpy

Overview:

The goal of this project was to understand the inner workings of neural networks without relying on high-level libraries like TensorFlow or PyTorch. To do this, I decided to build the Neural Network from scratch using only Python and numpy to classify handwritten digits from the MNIST dataset.

screenshot_1.png

Last Updated: 10/12/2024

How to Use:

Data preparation: Ensure that the MNIST dataset is downloaded and placed in the appropriate directory (e.g., /content/data/mnist_train.csv in your Colab notebook).

Run the code: Execute the Python script or notebook containing the code. The training process will be displayed, including the accuracy at each iteration.

Evaluate performance: After training, use the trained model to make predictions on the test set and assess its accuracy.

Future Improvements:

Experiment with different architectures: Explore deeper networks, convolutional layers, or recurrent neural networks.

Optimize hyperparameters: Fine-tune the learning rate, number of epochs, and other parameters to improve performance.

Implement regularization techniques: Prevent overfitting by using techniques like dropout or L1/L2 regularization.

License:  

This project is licensed under the MIT License.  

Acknowledgements:

Thank you to the authors of the resources and tutorials that inspired this project.

About

A Neural Network from pure Python (numpy) and trained it on the MNIST digit dataset.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published