To install requirements and my environment libraries.
pip install -r requirements.txt
cd gym-fourrooms
pip install -e .
cd ../gym-pinball
pip install -e .
-
Fourrooms To train the model(s) in the paper, run this command:
cd learning/fourrooms python main.py --config=<config file path>
You can switch the algorithm if you uncomment the other line in
run.sh
. -
Pinball To train the model(s) in the paper, run this command:
cd learning/pinball python main.py --config=<config file path>
You can switch the algorithm if you uncomment the other line in
run.sh
.
-
Fourrooms
To analyze my learning result(s)
cd evaluate/fourrooms python analyze.py "../../learning/fourrooms/res/steps/*sarsa*" "../../learning/fourrooms/res/steps/*human-subgoal*"
-
Pinball
To analyze my learning result(s)
cd evaluate/pinball python analyze.py "../../learning/pinball/data/res/actor-critic_steps*"
-
Arrangement
To output bar graphs with error, you fit
evaluate/<fourrooms|pinball>/out/mean_steps.csv
andevaluate/<fourrooms|pinball>/out/standard_error.csv
intoevaluate/notebooks/in/results_<fourrooms|pinball>
, and calculate upper and lower value with excel or some tools.cd evaluate/notebooks jupyter notebook
You will acquire bar graphs with error if you run notebook lines in order.