-
Notifications
You must be signed in to change notification settings - Fork 27
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
Improve unified planning support #309
Conversation
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 understand those commit, not related to up isn't it ?
is it some results of pre-commit or refactor you made ?
@@ -9,15 +9,14 @@ | |||
|
|||
|
|||
@pytest.mark.skipif(sys.version_info < (3, 10), reason="requires python3.10 or higher") | |||
def test_up_bridge_domain(): | |||
def test_up_bridge_domain_random(): | |||
noexcept = True | |||
|
|||
try: |
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 can be the opportunity to remove the try except here ?
@@ -420,7 +420,7 @@ def get_elements(self) -> Iterable[T]: | |||
return self._elements | |||
|
|||
def sample(self) -> T: | |||
return self._elements[super().sample()] | |||
return self._to_elements[super().sample()] |
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.
is it a bug you found during this PR implementation ?
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.
Correct, I found this bug when calling the sample
method of SetSpace
in the UP bridge unit tests.
There are 2 kinds of commits 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.
See my previous comment :)
This pull request improves the support of unified planning in scikit-decide, notably enabling to solve UP domains with the RLlib solver. It relies on: