Skip to content

Commit f1f5c2d

Browse files
committed
-- simpler comparison
1 parent 28b26e1 commit f1f5c2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hdbscan/dist_metrics.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ cdef class JaccardDistance(DistanceMetric):
789789
tf2 = x2[j] != 0
790790
nnz += (tf1 or tf2)
791791
n_eq += (tf1 and tf2)
792-
if nnz == 0 and n_eq == 0:
792+
if nnz == 0:
793793
return 0.0
794794
return (nnz - n_eq) * 1.0 / nnz
795795

0 commit comments

Comments
 (0)