Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Networks in Numpy

This project is an implementation of a neural network from scratch. The goal is to build a functional neural network library using only NumPy, for educational purposes.


Current Features:

  • Dense Layer: A fully connected layer with forward and backward propagation.
  • Activation Functions: ReLU, Sigmoid, Softmax, and Linear activations with backward pass.
  • Loss Functions: MSE, MAE, SSE, Categorical Cross-Entropy, and Sparse Cross-Entropy.
  • Backpropagation: Full implementation of the backward pass.
  • Optimizers: An optimizer base class with an initial SGD (Stochastic Gradient Descent) implementation.
  • Model API: A Model class to easily build, compile, and train neural networks.
  • He initialization: Improve weight initialization for deeper networks.

Future Goals:

  • Advanced Optimizers: Implement more sophisticated optimizers like Adam and RMSprop.
  • Batch & Data Handling: Support for mini-batch training and data shuffling for more efficient training on large datasets.
  • Metrics & Callbacks: Include accuracy metrics during training and a callback system for actions like early stopping.
  • Advanced Layer Types: Add more complex layers, such as Convolutional and Pooling layers.
  • Miscellaneous: Code refactoring and improvements, better data handling and easier compatibility with pandas

Setup Instructions

  1. Clone the Repository:
git clone https://github.com/Awesome075/Neural-Networks-Numpy-.git
cd Neural-Networks-Numpy-
  1. Create a virtual environment:
python -m venv venv
  1. Activate the Environment

    • On Windows:

       venv\Scripts\activate
    • On Linux/macOS:

       source venv/bin/activate
  2. Install Dependencies:

pip install -r requirements.txt
  1. Run the Main example:
python main.py

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages