We provide scripts to train and test PQN agents on the environments.
First, make sure that any custom environments and mods are registered in src/jaxatari/core.py.
-
Adapt the corresponding config script located in
scripts/benchmarks/config/alg/to use your environment and modification.- Note the difference between the pixel based and object-centric config.
-
Run the config via
bash python pqn_agent.py +alg=pqn_jaxatari_<mode>- During training, you can monitor the training curves with WandB.
- The most important value is:
returned_episode_returnsunderCharts. If this is not increasing over time, something is probably off. - For debugging, enable
TEST_DURING_TRAINandRECORD_VIDEO. This will log videos underMediato WandB and you can watch what the agent does. - Once done training, compile time and run time will be reported.
- Adapt your previous config and make sure to set
MOD_NAMEto your corresponding mod (if applicable), as well asRECORD_VIDEO=Trueif you want to log videos of the test environments. - Run the config via
bash python pqn_test.py +alg=pqn_jaxatari_<mode>- Once done, average return and length will be reported.