V - Vector typeM - Model type@Reference(authors="M. Steinbach, G. Karypis, V. Kumar", title="A Comparison of Document Clustering Techniques", booktitle="KDD workshop on text mining. Vol. 400. No. 1", url="http://glaros.dtc.umn.edu/gkhome/fetch/papers/docclusterKDDTMW00.pdf", bibkey="conf/kdd/SteinbachKK00") public class KMeansBisecting<V extends NumberVector,M extends MeanModel> extends AbstractAlgorithm<Clustering<M>> implements KMeans<V,M>
Reference:
M. Steinbach, G. Karypis, V. Kumar
A Comparison of Document Clustering Techniques
KDD workshop on text mining. Vol. 400. No. 1
| Modifier and Type | Class and Description |
|---|---|
static class |
KMeansBisecting.Parameterizer<V extends NumberVector,M extends MeanModel>
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private KMeans<V,M> |
innerkMeans
Variant of kMeans for the bisecting step.
|
private int |
k
Desired value of k.
|
private static Logging |
LOG
The logger for this class.
|
ALGORITHM_IDINIT_ID, K_ID, MAXITER_ID, SEED_ID, VARSTAT_IDDISTANCE_FUNCTION_ID| Constructor and Description |
|---|
KMeansBisecting(int k,
KMeans<V,M> innerkMeans)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
DistanceFunction<? super V> |
getDistanceFunction()
Returns the distanceFunction.
|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
Clustering<M> |
run(Database database,
Relation<V> relation)
Run the clustering algorithm.
|
void |
setDistanceFunction(NumberVectorDistanceFunction<? super V> distanceFunction)
Set the distance function to use.
|
void |
setInitializer(KMeansInitialization init)
Set the initialization method.
|
void |
setK(int k)
Set the value of k.
|
runclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprivate static final Logging LOG
private KMeans<V extends NumberVector,M extends MeanModel> innerkMeans
private int k
public Clustering<M> run(Database database, Relation<V> relation)
KMeanspublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<Clustering<M extends MeanModel>>public DistanceFunction<? super V> getDistanceFunction()
DistanceBasedAlgorithmgetDistanceFunction in interface DistanceBasedAlgorithm<V extends NumberVector>public void setK(int k)
KMeanspublic void setDistanceFunction(NumberVectorDistanceFunction<? super V> distanceFunction)
KMeanssetDistanceFunction in interface KMeans<V extends NumberVector,M extends MeanModel>distanceFunction - Distance function.public void setInitializer(KMeansInitialization init)
KMeanssetInitializer in interface KMeans<V extends NumberVector,M extends MeanModel>init - Initialization methodprotected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<Clustering<M extends MeanModel>>Copyright © 2019 ELKI Development Team. License information.