lance_linalg

Module kmeans

Source
Expand description

KMeans implementation for Apache Arrow Arrays.

Support l2, cosine and dot distances, see DistanceType.

Cosine distance are calculated by normalizing the vectors to unit length, and run l2 distance on the unit vectors.

Structs§

Enums§

Functions§