Skip to content

fix: clarify threshold error message#1361

Open
Starryyu77 wants to merge 1 commit into
qubvel-org:mainfrom
Starryyu77:fix/threshold-error-message
Open

fix: clarify threshold error message#1361
Starryyu77 wants to merge 1 commit into
qubvel-org:mainfrom
Starryyu77:fix/threshold-error-message

Conversation

@Starryyu77

Copy link
Copy Markdown

Summary

  • Fix the get_stats error message for floating-point outputs when threshold is None.
  • Add a regression test for the error message.

Closes #1167

Testing

  • uv run --python /opt/homebrew/bin/python3.12 --extra test pytest tests/test_metrics.py -q
  • uv run ruff check segmentation_models_pytorch/metrics/functional.py tests/test_metrics.py
  • uv run ruff format --check segmentation_models_pytorch/metrics/functional.py tests/test_metrics.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AssertionError description typo

1 participant