Feature/303 shielded training example#304
Merged
LorenzzoQM merged 2 commits intodevelopfrom Aug 25, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds a comprehensive example demonstrating shielded training for reinforcement learning in satellite tasking environments. The implementation shows how to apply safety constraints during both training and testing phases using action replacement and action masking techniques.
- Introduces a complete Jupyter notebook example with satellite environment configuration, shield implementation, and training/testing workflows
- Implements wrapper classes for action logging, post-posed shielding (action replacement), and action masking
- Provides a handmade shield example based on power and reaction wheel constraints for satellite safety
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| examples/training_with_shield.ipynb | Complete example notebook demonstrating shielded training with action replacement and masking |
| examples/_default.rst | Adds the new example to the documentation index |
| docs/source/release_notes.rst | Documents the new shielded training example feature |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
dc09012 to
6c1a181
Compare
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Closes #303
Adds an example script on how to train with shield using action replacement and action masking.
Type of change
How should this pull request be reviewed?
How Has This Been Tested?
Not applicable.
Checklist