Skip to content

Commit

Permalink
add bitwisehamming distance
Browse files Browse the repository at this point in the history
  • Loading branch information
benfred committed Feb 5, 2025
1 parent 1c1a9d0 commit ef9acc8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/cuvs/cuvs/distance/distance.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ DISTANCE_TYPES = {
"minkowski": cuvsDistanceType.LpUnexpanded,
"russellrao": cuvsDistanceType.RusselRaoExpanded,
"dice": cuvsDistanceType.DiceExpanded,
"bitwise_hamming": cuvsDistanceType.BitwiseHamming
}

DISTANCE_NAMES = {v: k for k, v in DISTANCE_TYPES.items()}
Expand Down
1 change: 1 addition & 0 deletions python/cuvs/cuvs/distance_type.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,5 @@ cdef extern from "cuvs/distance/distance.h" nogil:
KLDivergence
RusselRaoExpanded
DiceExpanded
BitwiseHamming
Precomputed

0 comments on commit ef9acc8

Please sign in to comment.