Image credits go to LeewayHertz@google.
This repository contains a simple implementation of a feedforward neural network from scratch using Python. The neural network is designed to learn and perform logical operations like XOR.
The neural network architecture includes classes for Connection
, Neuron
, and Network
. It's a basic implementation to understand the principles of backpropagation and feedforward neural networks.
To use this implementation, you need Python 3.x installed on your system. Additionally, you will require the numpy
library. You can install it via pip:
pip install numpy
- Clone the repository:
git clone https://github.com/Transcendental-Programmer/neural-network-from-scratch.git
- Navigate to the repository directory:
cd neural-network-from-scratch
- Run the main script:
python neural_network.py
To demonstrate the network's capabilities, we've included an example that trains the network to perform the XOR logical operation.
Contributions are welcome! If you find any bugs or have suggestions for improvement, feel free to open an issue or create a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.