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

MRG: update tests for distance metrics to test symmetry, with a bit of paranoia thrown in #48

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

ctb
Copy link
Contributor

@ctb ctb commented Sep 23, 2024

NOTE: PR into #45

This PR updates tests to be explicitly symmetric. It also avoids setting a missing k-mer count to 0 explicitly in one of the cos tests, so as test what happens when a k-mer is actually absent.

All minor changes but they make me feel a bit more secure :)

@ctb ctb mentioned this pull request Sep 23, 2024
@Adamtaranto Adamtaranto merged commit bfc4a70 into dev_dist_metrics Sep 23, 2024
@Adamtaranto Adamtaranto deleted the dev_dist_metrics_paranoia branch September 23, 2024 02:44
Adamtaranto added a commit that referenced this pull request Sep 23, 2024
* Add rayon

* add scipy for testing cosine

* Init cosine() method to calc cosine similarity. Use rayon.

* Add cosine() tests

* jaccard tests

* Jaccard Similarity Coefficient

* Style fixes by Ruff

* MRG: update tests for distance metrics to test symmetry, with a bit of paranoia thrown in (#48)

* test symmetric

* Style fixes by Ruff

---------

Co-authored-by: ctb <[email protected]>

---------

Co-authored-by: Adamtaranto <[email protected]>
Co-authored-by: C. Titus Brown <[email protected]>
Co-authored-by: ctb <[email protected]>
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.

2 participants