Skip to content

Comment-XD/Neural-Network-Scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Network from Scratch

This project implements a simple neural network framework from scratch in Python, designed for educational purposes and experimentation. It does not rely on external deep learning libraries, providing a clear view of the underlying mechanics of neural networks.

Project Structure

  • main.py — Entry point for running and testing the neural network.
  • src/activation.py — Contains activation functions (e.g., sigmoid, ReLU, etc.).
  • src/layers.py — Implements neural network layers and their forward/backward passes.
  • src/loss.py — Defines loss functions used for training.
  • src/trainer.py — Handles the training loop, including forward, backward propagation, and parameter updates.
  • requirements.txt — Lists required Python packages (minimal dependencies).

Features

  • Modular design for easy extension and experimentation.
  • Customizable activation and loss functions.
  • Manual implementation of forward and backward propagation.
  • Simple training loop for supervised learning tasks.

Getting Started

  1. Install dependencies:
    pip install -r requirements.txt
  2. Run the main script:
    python main.py

License

This project is licensed under the MIT License.

About

Neural Network from Scratch using NumPy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages