This repo. implements the backpropagtion algorithm widely used in Machine Learning. The user inputs the number of hidden neurons while the algorithm trains the Neural Network on the created model and the training dataset. Finally, the the machine predicts the outcomes on the testing dataset and plots the associated loss.
- random
- numpy
- math
- matplotlib (for plotting loss)
Download/clone the repo.
Add the correct file names for the training and test datasets that are given (or you could use your own 1 dimensional datasets)
Run the program using python3 backprop2.py