This respository contains code for the following paper:
Mayank Prashar, Jochem van Lith and Joost Jansen.
State Visitation Correction in Off-Policy Reinforcement Learning.
The code built upon SOPE: Spectrum of Off-Policy Estimators.
Please use Python 3.6.13
pip install -r requirements.txt
pip install -e .
To reproduce the results from the paper, see:
run_graph.pyrun_gridworld.py
The following promps were used to reproduce the results from the paper:
!python run_graph.py --models "SOPE" --Nvals "1024" --behavior_policies "0.1, 0.5, 0.9" --save_path ./experiment_results/ --image_path ./experiment_images/ --weighted True --unweighted True
!python run_gridworld.py --models "SOPE" --Nvals "1024" --behavior_policies "0.1, 0.5, 0.9" --save_path ./experiment_results/ --image_path ./experiment_images/ --weighted True --unweighted True
The results are generated within Google Colab with the following notebook:
To generate the plots from the paper, see:
additional_plots.py