Class AFKMC2
- java.lang.Object
-
- elki.clustering.kmeans.initialization.AbstractKMeansInitialization
-
- elki.clustering.kmeans.initialization.KMC2
-
- elki.clustering.kmeans.initialization.AFKMC2
-
- All Implemented Interfaces:
KMeansInitialization
- Direct Known Subclasses:
SphericalAFKMC2
@Title("AFK-MC\u00b2") @Reference(authors="O. Bachem, M. Lucic, S. H. Hassani, A. Krause", title="Fast and Provably Good Seedings for k-Means", booktitle="Neural Information Processing Systems 2016", url="https://proceedings.neurips.cc/paper/2016/hash/d67d8ab4f4c10bf22aa353e27879133c-Abstract.html", bibkey="DBLP:conf/nips/BachemLH016") public class AFKMC2 extends KMC2
AFK-MC² initializationReference:
O. Bachem, M. Lucic, S. H. Hassani, A. Krause
Fast and Provably Good Seedings for k-Means
Neural Information Processing Systems 2016- Since:
- 0.8.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AFKMC2.Instance
Abstract instance implementing the weight handling.static class
AFKMC2.Par
Parameterization class.
-
Constructor Summary
Constructors Constructor Description AFKMC2(int m, RandomFactory rnd)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]
chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance)
Choose initial means-
Methods inherited from class elki.clustering.kmeans.initialization.AbstractKMeansInitialization
unboxVectors
-
-
-
-
Field Detail
-
LOG
private static final Logging LOG
Class logger.
-
-
Constructor Detail
-
AFKMC2
public AFKMC2(int m, RandomFactory rnd)
Constructor.- Parameters:
m
- M parameterrnd
- Random generator.
-
-
Method Detail
-
chooseInitialMeans
public double[][] chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance)
Description copied from interface:KMeansInitialization
Choose initial means- Specified by:
chooseInitialMeans
in interfaceKMeansInitialization
- Overrides:
chooseInitialMeans
in classKMC2
- Parameters:
relation
- Relationk
- Parameter kdistance
- Distance function- Returns:
- List of chosen means for k-means
-
-