Skip to content

Correction for bit jaccard - #264

Open
TommasoTarchi wants to merge 3 commits into
lmcinnes:masterfrom
TommasoTarchi:correction-for-bit-jaccard
Open

Correction for bit jaccard#264
TommasoTarchi wants to merge 3 commits into
lmcinnes:masterfrom
TommasoTarchi:correction-for-bit-jaccard

Conversation

@TommasoTarchi

Copy link
Copy Markdown
Contributor

The bit_jaccard routine is implemented using the negative log transform, like alternative_jaccard. Therefore, a correction to the final distances should be applied.

To avoid writing an additional correction function, we switched from log to log2 transform, making it coherent with alternative_jaccard. If there are reasons to keep log instead of log2, then a new correction function has to be written.

@TommasoTarchi

Copy link
Copy Markdown
Contributor Author

Regarding the tests, I modified them to avoid rewriting a correct bit_jaccard routine (which would only be used for testing purposes). The drawback is that the test_alternative_distances function is less "elegant" in this way.

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.

1 participant