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

add test for to_transition and some refactorings #239

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

hyeok9855
Copy link
Collaborator

Resolve #113

  • Tests added for to_transition
  • Tests added with continuous environment (Box) for reverse_backward_trajectories and local_search
  • reverse_backward_trajectories is changed to a normal method as there seems no reason it should be a staticmethod.

@hyeok9855 hyeok9855 self-assigned this Feb 5, 2025
Copy link
Collaborator

@saleml saleml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.
LGTM

@@ -371,8 +371,8 @@ def __getitem__(
backward_masks = self.backward_masks[index]
out = self.__class__(states, forward_masks, backward_masks)
if self._log_rewards is not None:
log_probs = self._log_rewards[index]
out.log_rewards = log_probs
log_rewards = self._log_rewards[index]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@saleml saleml merged commit 84ca656 into master Feb 8, 2025
4 checks passed
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.

Add tests for Trajectories.to_transitions()
2 participants