-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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] Allow envs to be auto-registered; add on_train_result callback with curriculum example #3451
Conversation
Test FAILed. |
Test FAILed. |
if self.config["callbacks"].get("on_train_step"): | ||
self.config["callbacks"]["on_train_step"]({ | ||
"agent": self, | ||
"result": result, |
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.
.copy()?
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 deepcopy)
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.
I think the advantage here is the user can mutate it if they want.
@@ -444,6 +452,19 @@ def _restore(self, checkpoint_path): | |||
self.__setstate__(extra_data) | |||
|
|||
|
|||
def _register_if_needed(env_object): |
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.
should this happen earlier? i.e., before the config is pickled, somewhere in trial.py
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.
I don't think it really matters, since the pickled config can't be resolved anyways. Basically it just adds a little more text there.
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
@@ -297,6 +273,113 @@ Custom metrics can be accessed and visualized like any other training result: | |||
|
|||
.. image:: custom_metric.png | |||
|
|||
Example: Curriculum Learning |
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.
Can probably put together a page full of examples (in a later PR)
Test FAILed. |
No description provided.