-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
[rllib] Eager execution for centralized critic example, fix simple optimizer for multiagent #5683
Conversation
Test FAILed. |
Test FAILed. |
Test PASSed. |
sample_batch, | ||
other_agent_batches=None, | ||
episode=None): | ||
sample_batch["advantages"] = discount(sample_batch["rewards"], 0.99) |
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 should try to fetch gamma from policy config instead right
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.
Not for the example.
@@ -29,17 +32,22 @@ def __init__(self, | |||
workers, | |||
num_sgd_iter=1, | |||
train_batch_size=1, | |||
sgd_minibatch_size=0): | |||
sgd_minibatch_size=0, | |||
standardize_fields=[]): |
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.
None
PolicyOptimizer.__init__(self, workers) | ||
|
||
self.update_weights_timer = TimerStat() | ||
self.standardize_fields = standardize_fields |
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.
or []
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.
Changed to froenzeset
cc @eugenevinitsky