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 autocast with spearman metric #1303

Merged
merged 3 commits into from
Oct 31, 2022
Merged

Fix autocast with spearman metric #1303

merged 3 commits into from
Oct 31, 2022

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Oct 31, 2022

What does this PR do?

Fixes #1294
Makes checking of dtypes less restrictive for spearman metric so it will also work when used together with torch.cuda.amp.autocast.

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Oct 31, 2022
@SkafteNicki SkafteNicki added this to the v0.10 milestone Oct 31, 2022
@SkafteNicki SkafteNicki self-assigned this Oct 31, 2022
@Borda Borda enabled auto-merge (squash) October 31, 2022 12:13
@codecov
Copy link

codecov bot commented Oct 31, 2022

Codecov Report

Merging #1303 (999e6b5) into master (a42a25a) will decrease coverage by 51%.
The diff coverage is 100%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1303     +/-   ##
========================================
- Coverage      86%     36%    -51%     
========================================
  Files         190     190             
  Lines       11118   11121      +3     
========================================
- Hits         9617    3971   -5646     
- Misses       1501    7150   +5649     

@mergify mergify bot added the ready label Oct 31, 2022
@Borda Borda merged commit 604ed80 into master Oct 31, 2022
@Borda Borda deleted the bugfix/autocast_spearman branch October 31, 2022 14:04
Borda pushed a commit that referenced this pull request Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug / fix Something isn't working ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SpearmanCorrCoef has unnecessary explicit dtype check
3 participants