Skip to content
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

feat: improve 'eval_robustness' utility #313

Merged
merged 1 commit into from
Aug 2, 2023
Merged

Conversation

rickstaa
Copy link
Owner

@rickstaa rickstaa commented Aug 2, 2023

This pull request improves the 'eval_robustness' utility so that users no longer need to modify their environments to use it with this utility. The disturbers are now implemented as gymnasium wrappers. Because of this, they can be used with any gymnasium environment. If you want to add a new disturber, you only have to ensure that it is a Python class that inherits from the gym.Wrapper class.

This commit improves the 'eval_robustness' utility so that users no
longer need to modify their environments to use it with this utility.
The disturbers are now implemented as [gymnasium
wrappers](https://gymnasium.farama.org/api/wrappers/). Because of this,
they can be used with any [gymnasium
environment](https://gymnasium.farama.org/). If you want to add a new
disturber, you only have to ensure that it is a Python class that
inherits from the
[gym.Wrapper](https://github.com/Farama-Foundation/Gymnasium/blob/ba348890af369dad6e6093665fd4e54d8d4b4824/gymnasium/core.py#L246-L249)
class.
rickstaa added a commit to rickstaa/stable-gym that referenced this pull request Aug 2, 2023
This commit removes the disturber superclass now that this functionality was moved to the
https://github.com/rickstaa/stable-learning-control package (see
rickstaa/stable-learning-control#313).
@rickstaa rickstaa merged commit 3985867 into main Aug 2, 2023
@rickstaa rickstaa deleted the improve_robustness_eval branch August 2, 2023 14:48
rickstaa added a commit to rickstaa/stable-gym that referenced this pull request Aug 2, 2023
This commit removes the disturber superclass now that this functionality was moved to the
https://github.com/rickstaa/stable-learning-control package (see
rickstaa/stable-learning-control#313).
This was referenced Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant