This repository holds code for experiments and code associated with blog posts that I write. Check out my blog here.
Files:
optuna_rl.pyCode from the blog post Weird RL with Hyperparameter Optimizers. Part 2 of the blog post introduces a Streamlit webapp.atari_mask.pyCode from the blog post Breaking a Pong-playing RL agent.
Clone the repository and install it:
git clone https://github.com/jfpettit/exppy.git
cd exppy
pip install -e .If you don't want to install it as a package, then you don't need to, and you can run each file individually using python file_name.py --args, provided that you've got all of the required packages installed.
If you have opted to install it, then you can run things by invoking python -m:
python -m exppy.file_nameFor example, print out the help message from the Optuna RL code:
python -m exppy.optuna_rl --helpYou can import from the exppy module like a normal python package:
from exppy.atari_mask import ImageObsMask
from exppy.optuna_rl import Runner, run_policy, video_rollout
import gym
env = gym.make("BreakoutNoFrameskip-v4")
env = ImageObsMask(env)