Skip to content

Conversation

@patacca
Copy link
Collaborator

@patacca patacca commented Feb 15, 2024

By allowing empty feature vectors some distances might end up with a division by zero, hence they will not work. This happens for example with the canberra distance when both vectors are null in some indices.
In such a case we suggest using the haussmann distance that can correctly handle all those cases.

This might cause issues with distances that do not work with null
vectors, or with vectors that are both null in some indices.
The haussmann distance can handle all those cases though.
@patacca patacca added the bug Something isn't working label Feb 15, 2024
@patacca patacca requested a review from RobinDavid February 15, 2024 10:30
@RobinDavid RobinDavid merged commit 1496350 into main Mar 17, 2024
@patacca patacca deleted the fix_feature_bug branch April 9, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants