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 numberis a four-digit number corresponding to the row numbers inparam_list.csvunderparamsdirectory. As well as plots generated from these log filesparams: containsparam_list.csvandparam_list.json. All hyperparameters used in experiments can be found in these two files, index byexperiment numberdescribed 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 underlogdirectory by runningpython plotlog.py <file name>in terminal, wherefile nameis without extension.
-
Perform experiments by running
python run.pyfrom terminal, after setting desired hyperparameters inrun.pyscript.