-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[rllib] Auto clip actions to Box space range; deprecate squash_to_range #3426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a592421
fix clip
ericl 063ea3e
tweak wording
ericl 740b195
remove squash entirely
ericl 8d7361f
Update rllib-models.rst
ericl a6267c8
Merge remote-tracking branch 'upstream/master' into fix-action-clip
ericl 526a849
Merge branch 'fix-action-clip' of github.com:ericl/ray into fix-actio…
ericl 9b0a84e
fix argument order
ericl 3be7545
Apply suggestions from code review
richardliaw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,17 +1,26 @@ | ||
| # On a Tesla K80 GPU, this achieves the maximum reward in about 1-1.5 hours. | ||
| # On a single GPU, this achieves maximum reward in ~15-20 minutes. | ||
| # | ||
| # $ python train.py -f tuned_examples/pong-ppo.yaml --ray-num-gpus=1 | ||
| # $ python train.py -f tuned_examples/pong-ppo.yaml | ||
| # | ||
| # - PPO_PongDeterministic-v4_0: TERMINATED [pid=16387], 4984 s, 1117981 ts, 21 rew | ||
| # - PPO_PongDeterministic-v4_0: TERMINATED [pid=83606], 4592 s, 1068671 ts, 21 rew | ||
| # | ||
| pong-deterministic-ppo: | ||
| env: PongDeterministic-v4 | ||
| pong-ppo: | ||
| env: PongNoFrameskip-v4 | ||
| run: PPO | ||
| stop: | ||
| episode_reward_mean: 21 | ||
| config: | ||
| gamma: 0.99 | ||
| num_workers: 4 | ||
| num_sgd_iter: 20 | ||
| lambda: 0.95 | ||
| kl_coeff: 0.5 | ||
| clip_rewards: True | ||
| clip_param: 0.1 | ||
| vf_clip_param: 10.0 | ||
| entropy_coeff: 0.01 | ||
| train_batch_size: 5000 | ||
| sample_batch_size: 20 | ||
| sgd_minibatch_size: 500 | ||
| num_sgd_iter: 10 | ||
| num_workers: 32 | ||
| num_envs_per_worker: 5 | ||
| batch_mode: truncate_episodes | ||
| observation_filter: NoFilter | ||
| vf_share_layers: true | ||
| num_gpus: 1 | ||
| model: | ||
| dim: 42 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when would you want this to be false?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For backwards compatibility I think it's a reasonable option to have.