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

Improve calculations in Pearson #1729

Merged
merged 6 commits into from
Apr 26, 2023
Merged

Improve calculations in Pearson #1729

merged 6 commits into from
Apr 26, 2023

Conversation

SkafteNicki
Copy link
Member

What does this PR do?

Fixes #1725
Use alternative formula for quantities in pearson when possible that is more stable with half precision.

Before submitting
  • Was this discussed/agreed 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 Apr 23, 2023
@SkafteNicki SkafteNicki added this to the v1.0.0 milestone Apr 23, 2023
@mergify mergify bot requested a review from a team April 24, 2023 05:45
@Borda Borda enabled auto-merge (squash) April 26, 2023 06:11
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Merging #1729 (6ac7ab6) into master (b3c8ebb) will decrease coverage by 47%.
The diff coverage is 100%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #1729     +/-   ##
========================================
- Coverage      87%     40%    -47%     
========================================
  Files         250     250             
  Lines       14008   14015      +7     
========================================
- Hits        12251    5675   -6576     
- Misses       1757    8340   +6583     

@mergify mergify bot added the ready label Apr 26, 2023
@Borda Borda disabled auto-merge April 26, 2023 12:30
@Borda Borda merged commit 2c25f5d into master Apr 26, 2023
@Borda Borda deleted the bugfix/pearson branch April 26, 2023 12:31
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.

PearsonCorrCoeff returns nan when input is of type torch.float16 or torch.bfloat16.
2 participants