public abstract static class AbstractKMeans.Parameterizer<V extends NumberVector> extends AbstractNumberVectorDistanceBasedAlgorithm.Parameterizer<V>
Modifier and Type | Field and Description |
---|---|
protected KMeansInitialization |
initializer
Initialization method.
|
protected int |
k
k Parameter.
|
protected int |
maxiter
Maximum number of iterations.
|
protected boolean |
varstat
Compute the final variance statistic (not used by all).
|
distanceFunction
Constructor and Description |
---|
Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected void |
getParameterDistanceFunction(Parameterization config)
Get the distance function parameter.
|
protected void |
getParameterInitialization(Parameterization config)
Get the initialization method parameter.
|
protected void |
getParameterK(Parameterization config)
Get the k parameter.
|
protected void |
getParameterMaxIter(Parameterization config)
Get the max iterations parameter.
|
protected void |
getParameterVarstat(Parameterization config)
Get the variance statistics parameter.
|
protected abstract AbstractKMeans<V,?> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
protected boolean |
needsMetric()
Users could use other non-metric distances at their own risk; but some
k-means variants make explicit use of the triangle inequality, we emit
extra warnings then.
|
configure, make
protected int k
protected int maxiter
protected KMeansInitialization initializer
protected boolean varstat
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractNumberVectorDistanceBasedAlgorithm.Parameterizer<V extends NumberVector>
config
- Parameterization to add options to.protected void getParameterK(Parameterization config)
config
- Parameterizationprotected void getParameterDistanceFunction(Parameterization config)
config
- Parameterizationprotected boolean needsMetric()
true
if the algorithm uses triangle inequalityprotected void getParameterInitialization(Parameterization config)
config
- Parameterizationprotected void getParameterMaxIter(Parameterization config)
config
- Parameterizationprotected void getParameterVarstat(Parameterization config)
config
- Parameterizationprotected abstract AbstractKMeans<V,?> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer
Copyright © 2019 ELKI Development Team. License information.