Lightning-AI / torchmetrics

Machine learning metrics for distributed, scalable PyTorch applications.
https://lightning.ai/docs/torchmetrics/
Apache License 2.0
2.15k stars 408 forks source link

Improve CI stability for clustering examples #2785

Closed SkafteNicki closed 1 month ago

SkafteNicki commented 1 month ago

What does this PR do?

Sometimes docs build are failing due to a bad sampling in clustering metrics: https://github.com/Lightning-AI/torchmetrics/actions/runs/11342203643/job/31542759627 This should make it more robust by increasing the number of samples.

Before submitting - [ ] Was this **discussed/agreed** via a Github issue? (no need for typos and docs improvements) - [ ] Did you read the [contributor guideline](https://github.com/Lightning-AI/torchmetrics/blob/master/.github/CONTRIBUTING.md), 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--2785.org.readthedocs.build/en/2785/

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 36%. Comparing base (b1f4db2) to head (6fbc93a). Report is 1 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2785 +/- ## ======================================== - Coverage 70% 36% -33% ======================================== Files 336 336 Lines 18229 18229 ======================================== - Hits 12705 6609 -6096 - Misses 5524 11620 +6096 ```