-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Finished PQN documentation by adding commands to run the benchmarks a…
…d plotting the results
- Loading branch information
1 parent
c8acf70
commit d9c300b
Showing
3 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
poetry install | ||
OMP_NUM_THREADS=1 xvfb-run -a poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \ | ||
--command "poetry run python cleanrl/pqn.py --no_cuda --track" \ | ||
--num-seeds 3 \ | ||
--workers 9 \ | ||
--slurm-gpus-per-task 1 \ | ||
--slurm-ntasks 1 \ | ||
--slurm-total-cpus 10 \ | ||
--slurm-template-path benchmark/cleanrl_1gpu.slurm_template | ||
|
||
poetry install -E envpool | ||
poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids Breakout-v5 SpaceInvaders-v5 BeamRider-v5 Pong-v5 MsPacman-v5 \ | ||
--command "poetry run python cleanrl/pqn_atari_envpool.py --track" \ | ||
--num-seeds 3 \ | ||
--workers 9 \ | ||
--slurm-gpus-per-task 1 \ | ||
--slurm-ntasks 1 \ | ||
--slurm-total-cpus 10 \ | ||
--slurm-template-path benchmark/cleanrl_1gpu.slurm_template | ||
|
||
poetry install -E envpool | ||
poetry run python -m cleanrl_utils.benchmark \ | ||
--env-ids Breakout-v5 SpaceInvaders-v5 BeamRider-v5 Pong-v5 MsPacman-v5 \ | ||
--command "poetry run python cleanrl/pqn_atari_envpool_lstm.py --track" \ | ||
--num-seeds 3 \ | ||
--workers 9 \ | ||
--slurm-gpus-per-task 1 \ | ||
--slurm-ntasks 1 \ | ||
--slurm-total-cpus 10 \ | ||
--slurm-template-path benchmark/cleanrl_1gpu.slurm_template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
python -m openrlbenchmark.rlops \ | ||
--filters '?we=rogercreus&wpn=cleanRL&ceik=env_id&cen=exp_name&metric=charts/episodic_return' \ | ||
'pqn?tag=pr-472&cl=CleanRL PQN' \ | ||
--env-ids CartPole-v1 Acrobot-v1 MountainCar-v0 \ | ||
--no-check-empty-runs \ | ||
--pc.ncols 3 \ | ||
--pc.ncols-legend 2 \ | ||
--output-filename benchmark/cleanrl/pqn \ | ||
--scan-history | ||
|
||
python -m openrlbenchmark.rlops \ | ||
--filters '?we=rogercreus&wpn=cleanRL&ceik=env_id&cen=exp_name&metric=charts/episodic_return' \ | ||
'pqn_atari_envpool?tag=pr-472&cl=CleanRL PQN' \ | ||
--env-ids Breakout-v5 SpaceInvaders-v5 BeamRider-v5 Pong-v5 MsPacman-v5 \ | ||
--no-check-empty-runs \ | ||
--pc.ncols 3 \ | ||
--pc.ncols-legend 3 \ | ||
--rliable \ | ||
--rc.score_normalization_method maxmin \ | ||
--rc.normalized_score_threshold 1.0 \ | ||
--rc.sample_efficiency_plots \ | ||
--rc.sample_efficiency_and_walltime_efficiency_method Median \ | ||
--rc.performance_profile_plots \ | ||
--rc.aggregate_metrics_plots \ | ||
--rc.sample_efficiency_num_bootstrap_reps 10 \ | ||
--rc.performance_profile_num_bootstrap_reps 10 \ | ||
--rc.interval_estimates_num_bootstrap_reps 10 \ | ||
--output-filename static/0compare \ | ||
--scan-history | ||
|
||
python -m openrlbenchmark.rlops \ | ||
--filters '?we=rogercreus&wpn=cleanRL&ceik=env_id&cen=exp_name&metric=charts/episodic_return' \ | ||
'pqn_atari_envpool_lstm?tag=pr-472&cl=CleanRL PQN' \ | ||
--env-ids Breakout-v5 SpaceInvaders-v5 BeamRider-v5 MsPacman-v5 \ | ||
--no-check-empty-runs \ | ||
--pc.ncols 3 \ | ||
--pc.ncols-legend 3 \ | ||
--rliable \ | ||
--rc.score_normalization_method maxmin \ | ||
--rc.normalized_score_threshold 1.0 \ | ||
--rc.sample_efficiency_plots \ | ||
--rc.sample_efficiency_and_walltime_efficiency_method Median \ | ||
--rc.performance_profile_plots \ | ||
--rc.aggregate_metrics_plots \ | ||
--rc.sample_efficiency_num_bootstrap_reps 10 \ | ||
--rc.performance_profile_num_bootstrap_reps 10 \ | ||
--rc.interval_estimates_num_bootstrap_reps 10 \ | ||
--output-filename static/0compare \ | ||
--scan-history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters