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 Spatial Correlation Coefficient (SCC) metric #2248

Merged
merged 31 commits into from
Dec 22, 2023
Merged

Add Spatial Correlation Coefficient (SCC) metric #2248

merged 31 commits into from
Dec 22, 2023

Conversation

HoseinAkbarzadeh
Copy link
Contributor

@HoseinAkbarzadeh HoseinAkbarzadeh commented Nov 29, 2023

What does this PR do?

Adds spatial correlation coefficient (scc) according to #799

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--2248.org.readthedocs.build/en/2248/

Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Merging #2248 (5e18e82) into master (2cab7b3) will decrease coverage by 46%.
The diff coverage is 90%.

Additional details and impacted files
@@           Coverage Diff            @@
##           master   #2248     +/-   ##
========================================
- Coverage      87%     41%    -46%     
========================================
  Files         298     300      +2     
  Lines       16854   16969    +115     
========================================
- Hits        14634    6970   -7664     
- Misses       2220    9999   +7779     

Copy link
Member

@SkafteNicki SkafteNicki left a comment

Choose a reason for hiding this comment

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

Already looking good, some starting comments for improving the code :)

docs/source/image/spatial_correlation_coefficient.rst Outdated Show resolved Hide resolved
src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
src/torchmetrics/image/scc.py Outdated Show resolved Hide resolved
tests/unittests/image/test_scc.py Outdated Show resolved Hide resolved
src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
@HoseinAkbarzadeh
Copy link
Contributor Author

@SkafteNicki I made some modifications to correct the problems. Would you mind taking another look ?

src/torchmetrics/functional/image/scc.py Outdated Show resolved Hide resolved
@mergify mergify bot added the ready label Dec 4, 2023
@HoseinAkbarzadeh
Copy link
Contributor Author

HoseinAkbarzadeh commented Dec 18, 2023

Sorry, since the last changes I made, I got no new feedback and I don't know whether the PR is rejected. @Borda @SkafteNicki would you mind taking a look at this PR and guide me what should I do next ? Is there something that I'm missing ?

@mergify mergify bot added the ready label Dec 18, 2023
@SkafteNicki
Copy link
Member

@HoseinAkbarzadeh sorry for the delay from my part. PR is not rejected, we have just been busy on other fronts. Let me try to get this merged within the next couple of days

SkafteNicki and others added 3 commits December 20, 2023 15:32
Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com>
@mergify mergify bot removed the ready label Dec 20, 2023
@mergify mergify bot removed the has conflicts label Dec 21, 2023
@Borda Borda enabled auto-merge (squash) December 21, 2023 21:01
docs/source/links.rst Outdated Show resolved Hide resolved
docs/source/links.rst Outdated Show resolved Hide resolved
@mergify mergify bot removed the has conflicts label Dec 22, 2023
@Borda Borda merged commit 4059085 into Lightning-AI:master Dec 22, 2023
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation New metric ready topic: Image
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants