What are the available distance metrics for the k-nearest neighbor calculation?

1 vues

Réponse

The 'distanceMetric' parameter supports 'COSINE' (cosine distance), 'IP' (inner product), and 'L2' (Euclidean distance). The default value is 'L2'.
Did this answer help you?
fastknn

fastKnn

See technical action