The repo contains code to run experiments required for CS 7642 Summer 2018 Project 2.
-
Required packages: Python 3.6.1, Numpy 1.12.1, Pandas 0.20.1, Matplotlib 2.0.2, Gym 0.10.5, Box2D 2.3.2, PyTorch 0.4.0.
-
The repo contains these folders:
logs
: contains csv files that are results from each experiments, the file names are in the format oftrain_param_<experiment number>
ortest_param_<experiment number>
for training or testing results, whereexperiment number
is a four-digit number corresponding to the row numbers inparam_list.csv
underparams
directory. As well as plots generated from these log filesparams
: containsparam_list.csv
andparam_list.json
. All hyperparameters used in experiments can be found in these two files, index byexperiment number
described above.report
: full report in PDF and LaTex format, and accessory filesweights
: saved model and model weights, files named after theexperiment number
.
-
The repo contains these files:
README.md
: this file, description of this repolearner.py
: DQN learner class and necessary facilitating classes, called fromrun.py
. DQN learner class includes bothlearn()
andtest()
methods,test()
is called afterlearn()
is finishedtester.py
: DQN tester class, used to run additional tests on existing trained model weights.run.py
: used to pass hyperparameters to and run DQN learner.plotter.py
: plotting functions that are called by other scriptsplotlog.py
: used to plog a log file underlog
directory by runningpython plotlog.py <file name>
in terminal, wherefile name
is without extension.
-
Perform experiments by running
python run.py
from terminal, after setting desired hyperparameters inrun.py
script.