-
Notifications
You must be signed in to change notification settings - Fork 6.9k
[rllib] Propagate model options correctly in ARS / ES, to action dist of PPO #2974
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
Conversation
|
Test FAILed. |
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
|
Test PASSed. |
| action_noise_std, | ||
| options=options) | ||
| model_options, action_noise_std): | ||
| GenericPolicy.__init__(self, sess, action_space, preprocessor, |
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.
It seems like this policy won't be linear? you could make this model.update({"fcnet_hiddens": []}) though that's kind of gross.
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.
Hmm I think that should work. I rewrote it to use the standard model option instead of explicitly having a linear policy.
|
Test PASSed. |
| >>> dist_cls, dist_dim = ModelCatalog.get_action_dist(env.action_space) | ||
| >>> model = ModelCatalog.get_model(inputs, dist_dim) | ||
| >>> dist_cls, dist_dim = ModelCatalog.get_action_dist( |
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.
why these changes (making config/option mandatory)?
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.
This prevents you from forgetting to specify them. We should have made it mandatory in the first place.
| @@ -0,0 +1,131 @@ | |||
| """Collection of Carla scenarios, including those from the CoRL 2017 paper.""" | |||
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.
do you need future import here?
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.
These files are just moved verbatim.
| @@ -28,14 +28,14 @@ | |||
| "carla": { | |||
| "run": "PPO", | |||
| "env": "carla_env", | |||
| "trial_resources": {"cpu": 4, "gpu": 1}, | |||
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.
why does Carla no longer need GPU specification?
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.
It's auto-detected for rllib since 0.5.0.
cc @eugenevinitsky