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

Added a check for way < num_class #16

Merged
merged 1 commit into from
Aug 1, 2023
Merged

Added a check for way < num_class #16

merged 1 commit into from
Aug 1, 2023

Conversation

nukularrr
Copy link
Contributor

Fixes issue #15

Also fixed some doc items

Fixes #15
@stevenjson
Copy link
Collaborator

Wasn't the plan to do a require statement? What changed your mind?

Copy link
Collaborator

@stevenjson stevenjson left a comment

Choose a reason for hiding this comment

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

LGTM!

@nukularrr nukularrr merged commit 8f04b65 into main Aug 1, 2023
@nukularrr nukularrr deleted the bugfix/way_size branch August 1, 2023 14:55
nukularrr added a commit that referenced this pull request Aug 3, 2023
After merging #16, the tests began failing due to a typeguard error
checking that a dictionary actually produces key, val pairs as
a returned item in `generate_support` in `utils.py`. I used the
opportunity to refactor that call to only ever return a dict by
making it optional to pass in the shuffled indexes (only used
internally in generate_episode, anyway), saving a second call to
`torch.unique`. Upon finding an issue in typeguard that appeared
at the same time as their upstream release and our error, I restricted
the typeguard version to be 4.0 or lower.

Refs #17
nukularrr added a commit that referenced this pull request Aug 3, 2023
After merging #16, the tests began failing due to a typeguard error
checking that a dictionary actually produces key, val pairs as
a returned item in `generate_support` in `utils.py`. I used the
opportunity to refactor that call to only ever return a dict by
making it optional to pass in the shuffled indexes (only used
internally in generate_episode, anyway), saving a second call to
`torch.unique`. Upon finding an issue in typeguard that appeared
at the same time as their upstream release and our error, I restricted
the typeguard version to be 4.0 or lower.

Refs #17
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.

2 participants