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

Rename collections.py to metrics_collections.py to avoid clashing with collections package #695

Merged
merged 3 commits into from
Dec 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `BLEUScore` now expects untokenized input to stay consistent with all the other text metrics ([#640](https://github.com/PyTorchLightning/metrics/pull/640))


- Renamed `torchmetrics.collections` to `torchmetrics.metrics_collections` to avoid clashing with system's `collections` package ([#695](https://github.com/PyTorchLightning/metrics/pull/695))


### Deprecated

- Renamed IoU -> Jaccard Index ([#662](https://github.com/PyTorchLightning/metrics/pull/662))
Expand Down
2 changes: 1 addition & 1 deletion tests/bases/test_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

from tests.helpers import seed_all
from tests.helpers.testers import DummyMetricDiff, DummyMetricSum
from torchmetrics.collections import MetricCollection
from torchmetrics.metric_collections import MetricCollection

seed_all(42)

Expand Down
2 changes: 1 addition & 1 deletion torchmetrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
Specificity,
StatScores,
)
from torchmetrics.collections import MetricCollection # noqa: E402
from torchmetrics.image import PSNR, SSIM # noqa: E402
from torchmetrics.metric import Metric # noqa: E402
from torchmetrics.metric_collections import MetricCollection # noqa: E402
from torchmetrics.regression import ( # noqa: E402
CosineSimilarity,
ExplainedVariance,
Expand Down
File renamed without changes.