class DenseMetric(IntEnum) Values
INNER | 1 | Sum of elementwise products, unnormalized; the one metric the linear-algebra verbs accept. |
|---|---|---|
ANGULAR | 2 | Cosine distance in [0, 2], zero for identical directions and blind to magnitude. |
EUCLIDEAN | 3 | L2 distance, non-negative and zero only for identical vectors. |
HAMMING | 4 | Count of differing bits, ranging up to the dimensionality. |
JACCARD | 5 | Differing bits over union bits in [0, 1], ignoring the zeros both vectors share. |