V - vector datatype@Reference(authors="J. Drake",title="Faster k-means clustering",booktitle="Faster k-means clustering",url="http://hdl.handle.net/2104/8826",bibkey="mathesis/Drake13") @Reference(authors="G. Hamerly and J. Drake",title="Accelerating Lloyd\u2019s Algorithm for k-Means Clustering",booktitle="Partitional Clustering Algorithms",url="https://doi.org/10.1007/978-3-319-09259-1_2",bibkey="doi:10.1007/978-3-319-09259-1_2") public class KMeansAnnulus<V extends NumberVector> extends KMeansHamerly<V>
This implementation could be further improved by precomputing and storing the norms of all points (at the cost of O(n) memory additionally).
Reference:
J. Drake
Faster k-means clustering
Masters Thesis
G. Hamerly and J. Drake
Accelerating Lloyd’s Algorithm for k-Means Clustering
Partitional Clustering Algorithms
| Modifier and Type | Class and Description |
|---|---|
protected static class |
KMeansAnnulus.Instance
Inner instance, storing state for a single data set.
|
static class |
KMeansAnnulus.Parameterizer<V extends NumberVector>
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private static Logging |
LOG
The logger for this class.
|
varstatinitializer, k, maxiterdistanceFunctionALGORITHM_IDINIT_ID, K_ID, MAXITER_ID, SEED_ID, VARSTAT_IDDISTANCE_FUNCTION_ID| Constructor and Description |
|---|
KMeansAnnulus(NumberVectorDistanceFunction<? super V> distanceFunction,
int k,
int maxiter,
KMeansInitialization initializer,
boolean varstat)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
Clustering<KMeansModel> |
run(Database database,
Relation<V> relation)
Run the clustering algorithm.
|
getInputTypeRestriction, incrementalUpdateMean, initialMeans, means, minusEquals, nearestMeans, plusEquals, plusMinusEquals, setDistanceFunction, setInitializer, setKgetDistanceFunctionrunclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrungetDistanceFunctionprivate static final Logging LOG
public KMeansAnnulus(NumberVectorDistanceFunction<? super V> distanceFunction, int k, int maxiter, KMeansInitialization initializer, boolean varstat)
distanceFunction - distance functionk - k parametermaxiter - Maxiter parameterinitializer - Initialization methodvarstat - Compute the variance statisticpublic Clustering<KMeansModel> run(Database database, Relation<V> relation)
KMeansrun in interface KMeans<V extends NumberVector,KMeansModel>run in class KMeansHamerly<V extends NumberVector>database - Database to run on.relation - Relation to process.protected Logging getLogger()
AbstractAlgorithmgetLogger in class KMeansHamerly<V extends NumberVector>Copyright © 2019 ELKI Development Team. License information.