This repository implements all experiments in the paper Model Fusion for Personalized Learning (submitted and under review at ICML 2021).
- Python >= 3.6
- numpy, scikit-learn, pytorch, panda, matplotlib, d2l
- Run the following to install the requirements
pip install -r requirements.txt
- Set the parameters
BASE
andPROJECT_NAME
inutilities/util.py
to configure the path to save the models and results. Default is/tmp/personalized-learning
. - Turn on/off the model alignment by setting
do_alignment
totrue/false
- Run the code as follows
PYTHONPATH=/path/to/the/code/directory python sine_experiment.py
PYTHONPATH=/path/to/the/code/directory python movielens_experiment.py
- The code for running the sine regression experiment is in
experiments/sine_experiment.py
.
- The code for running the Movie-Lens recommendation experiment is in
experiments/movielens_experiment.py
.
- The code for running the MNIST classification experiment is in
experiments/mnist_experiment.py
. - Before running the above experiment, you may want to create some pre-trained models using the script
experiments/mnist.py
.
- The meta model implementation is in
models/meta.py