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

fix: default value for obs in extras #228

Merged
merged 5 commits into from
Mar 11, 2024
Merged

Conversation

clement-bonnet
Copy link
Collaborator

@clement-bonnet clement-bonnet commented Mar 8, 2024

  • give a default behavior for next_obs_in_extras that is backward compatible for AutoResetWrapper and VmapAutoResetWrapper, following fix: autoreset wrappers #223
  • handle non-numeric data in loggers (was crashing for next_obs of type Observation for instance)
  • also made the add_obs_to_extras function take a timestep instead of (state, timestep)

@clement-bonnet clement-bonnet added the bug Something isn't working label Mar 8, 2024
@clement-bonnet clement-bonnet requested review from djbyrne and sash-a March 8, 2024 21:33
@clement-bonnet clement-bonnet self-assigned this Mar 8, 2024
sash-a
sash-a previously approved these changes Mar 11, 2024
Copy link
Collaborator

@sash-a sash-a left a comment

Choose a reason for hiding this comment

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

Approving, so long, but please make an is_logable method.

Thanks for spotting this bug, didn't do any training runs when I made the edits to the wrapper 😄

jumanji/training/loggers.py Outdated Show resolved Hide resolved
jumanji/wrappers.py Show resolved Hide resolved
Copy link
Collaborator

@sash-a sash-a left a comment

Choose a reason for hiding this comment

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

Thanks @clement-bonnet 🔥

@clement-bonnet clement-bonnet enabled auto-merge (squash) March 11, 2024 10:29
@clement-bonnet clement-bonnet merged commit 8b10543 into main Mar 11, 2024
5 checks passed
@clement-bonnet clement-bonnet deleted the fix-obs-in-extras-default branch March 11, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants