Skip to content

Add CT4 and Dice distances#490

Merged
j-adamczyk merged 3 commits intomasterfrom
more_distances
Sep 23, 2025
Merged

Add CT4 and Dice distances#490
j-adamczyk merged 3 commits intomasterfrom
more_distances

Conversation

@j-adamczyk
Copy link
Member

Changes

CT4 and Dice similarities, further part of #488.

Checklist before requesting a review

  • Docstrings added/updated in public functions and classes
  • Tests added, reasonable test coverage (at least ~90%, make test-coverage)
  • Sphinx docs added/updated and render properly (make docs and see docs/_build/index.html)

assert value < distance
elif comparison == "==":
assert np.isclose(distance, value, atol=1e-3)
def assert_similarity_values(
Copy link
Collaborator

Choose a reason for hiding this comment

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

These functions (similarity and distance) are identical. DRY

@j-adamczyk j-adamczyk requested a review from mjste September 23, 2025 08:49
@j-adamczyk j-adamczyk merged commit ce4b8fc into master Sep 23, 2025
13 checks passed
@j-adamczyk j-adamczyk deleted the more_distances branch September 23, 2025 08:55
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.

3 participants