/42-multilayer-perceptron

The Multilayer Perceptron project at 42

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Multilayer Perceptron

Requirements

Python 3 and other requirements in requirements.txt.

Usage

You first need to train a model to predict with it.
If no datasets as the first argument is given, the default one will be used.

python3 train.py

You can then predict for another dataset with the same format.
if no datasets as the first argument is given, it will try to use datasets/correction.csv.

python3 predict.py

You can see the effect of changing the learning rate and the neural network size with the learning_rate.py and network_size.py scripts, which will train a model with different hyperparameters and compare their accuracy and loss over each epoch.

python3 learning_rate.py
python3 network_size.py

Resources