Closed alxndrkalinin closed 6 years ago
Elkan's algorithm is an improved version of usual kMeans (called Lloyd's algorithm) that uses the triangular inequality to avoid many distance calculations when assigning points to clusters.
kMeansElkan
ClusterKMeans
step
Note: for algorithm implementation you can look at scikit-learn Cython code as an example and use ClusterMetrics service to calculate distances
Elkan's algorithm is an improved version of usual kMeans (called Lloyd's algorithm) that uses the triangular inequality to avoid many distance calculations when assigning points to clusters.
kMeansElkan
and inject it intoClusterKMeans
step
that implements Elkan's algorithmNote: for algorithm implementation you can look at scikit-learn Cython code as an example and use ClusterMetrics service to calculate distances