A project featuring a scalar-value Autograd engine built from scratch with Python and NumPy to demonstrate the fundamental building blocks and logic of neural networks.
This repository contains a foundational implementation of basic Artificial Neural Networks (ANN) built entirely from scratch using Python and NumPy, without relying on high-level deep learning frameworks like TensorFlow or PyTorch.
The primary goal of this project is to gain a deep, fundamental understanding of how neural networks work, including the core mathematical concepts and algorithms behind them.
This project focuses on object classification tasks, specifically for image recognition, by implementing Multi-Layer Perceptrons (MLP) from the ground up.
np.dot) to calculate weighted sums.The project uses popular benchmark datasets to train and test the scratch-built models:
The project deliberately limits dependencies to ensure the focus remains on the core mathematical implementation.
.ipynb files).Clone the repository and install the necessary dependencies:
git clone [https://github.com/Decuayer/neural-network-basics.git](https://github.com/Decuayer/neural-network-basics.git)
cd neural-network-basics
pip install -r requirements.txt
# Note: If requirements.txt is not available, you likely only need:
# pip install numpy jupyter
The core logic and training examples are contained within the Jupyter Notebooks:
jupyter notebook
neural_network.ipynb: Contains the simple, generic neural network implementation.neural_network_cifar10.ipynb: Demonstrates the application of the model to the CIFAR-10 dataset.neural_network.py: (If present) The standalone Python script version of the model.Follow the instructions and comments within the notebooks to understand the step-by-step process of model creation, training, and evaluation.