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 error on wrong shape in CosineSimilarity metric #2241

Merged
merged 13 commits into from
Nov 28, 2023

Conversation

SkafteNicki
Copy link
Member

@SkafteNicki SkafteNicki commented Nov 27, 2023

What does this PR do?

Fixes #2240

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 🙃


📚 Documentation preview 📚: https://torchmetrics--2241.org.readthedocs.build/en/2241/

@SkafteNicki SkafteNicki added the bug / fix Something isn't working label Nov 27, 2023
@SkafteNicki SkafteNicki added this to the v1.2.x milestone Nov 27, 2023
@SkafteNicki SkafteNicki self-assigned this Nov 27, 2023
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

Merging #2241 (bd2b36e) into master (8ef2a89) will decrease coverage by 50%.
Report is 1 commits behind head on master.
The diff coverage is 100%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #2241     +/-   ##
========================================
- Coverage      87%     37%    -50%     
========================================
  Files         293     293             
  Lines       16423   16425      +2     
========================================
- Hits        14280    6080   -8200     
- Misses       2143   10345   +8202     

@SkafteNicki SkafteNicki enabled auto-merge (squash) November 28, 2023 15:30
@mergify mergify bot removed the has conflicts label Nov 28, 2023
@Borda Borda disabled auto-merge November 28, 2023 16:11
@Borda Borda merged commit 245ee24 into master Nov 28, 2023
49 of 57 checks passed
@Borda Borda deleted the bugfix/error_cosine_sim branch November 28, 2023 16:12
@mergify mergify bot added the ready label Nov 28, 2023
Borda pushed a commit that referenced this pull request Nov 30, 2023
Borda pushed a commit that referenced this pull request Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weird behavior of CosineSimilarityMetric when used with tensors of shape [d]
3 participants