This repository containts the code capable of reproducing the results of the paper How a student becomes a teacher: learning and forgetting through Spectral methods by L.Giambagli, L.Buffoni, L.Chicchi, D.Fanelli.
To plot the result in the paper run the python file main_results.py
. The code contains three different section that
can be commented depending on the desired results. More specifically, the first section reproduces the histograms of the
scalars
The file run_experiments.py
contains the code to run the experiments for the different student hidden layer sizes basing
on the configuration file config.json
. The results are always saved in the folder Results
with subdirectory structure
given in the configuration.
In order to run the code properly several packages might be needed. The file requirements.txt
contains the list of the
packages used in the development of the code. The code has been tested with Python 3.10.0.