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

fix multilabel in exact_match #1474

Merged
merged 14 commits into from Feb 6, 2023
2 changes: 1 addition & 1 deletion .azure/gpu-pipeline.yml
Expand Up @@ -122,7 +122,7 @@ jobs:
displayName: 'Pull testing data from S3'

- bash: |
python -m pytest unittests -v --cov=torchmetrics --junitxml=$(Build.StagingDirectory)/test-results.xml --timeout=180 --durations=50
python -m pytest unittests -v --cov=torchmetrics --junitxml=$(Build.StagingDirectory)/test-results.xml --timeout=300 --durations=50
Borda marked this conversation as resolved.
Show resolved Hide resolved
env:
CUDA_LAUNCH_BLOCKING: 1
workingDirectory: tests
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -46,6 +46,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed type hints in methods belonging to `MetricTracker` wrapper ([#1472](https://github.com/Lightning-AI/metrics/pull/1472))


- Fixed `multilabel` in `ExactMatch` ([#1474](https://github.com/Lightning-AI/metrics/pull/1474))



## [0.11.1] - 2023-01-30

### Fixed
Expand Down
Expand Up @@ -232,7 +232,7 @@ def exact_match(
if task == "multiclass":
assert num_classes is not None
return multiclass_exact_match(preds, target, num_classes, multidim_average, ignore_index, validate_args)
if task == "multilalbe":
if task == "multilabel":
SkafteNicki marked this conversation as resolved.
Show resolved Hide resolved
assert num_labels is not None
return multilabel_exact_match(
preds, target, num_labels, threshold, multidim_average, ignore_index, validate_args
Expand Down