This is an implementation of a Forward-Forward Neural Network inspired by Geoff Hinton's work. The network is trained on the CIFAR-10 dataset (can be extended to other computer vision datasets) to perform classification tasks.
- Python 3.x
- PyTorch
- torchvision
-
Clone the repository:
git clone https://github.com/your-username/forward-forward-neural-network.git
-
Install the required dependencies:
pip install torch torchvision
-
Download the CIFAR-10 dataset:
python download_cifar10.py
-
Train and evaluate the Forward-Forward Neural Network:
python main.py
- You can modify the network architecture by adjusting the dimensions in the
Net
class intrain.py
. - The learning rate and other hyperparameters can be tuned in the
Layer
class intrain.py
.
After training the model, the training and test errors will be displayed. The trained model will be evaluated on the CIFAR-10 test dataset.
Contributions are welcome! Please create a new branch and submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License.
- Geoff Hinton for the inspiration behind the Forward-Forward Neural Network.
- PyTorch and torchvision teams for their excellent libraries.
- CIFAR-10 dataset creators for providing the dataset.