public abstract static class AbstractKMeans.Parameterizer<V extends NumberVector<?>,D extends Distance<D>> extends AbstractPrimitiveDistanceBasedAlgorithm.Parameterizer<NumberVector<?>,D>
Modifier and Type | Field and Description |
---|---|
protected KMeansInitialization<V> |
initializer
Initialization method.
|
protected int |
k
k Parameter.
|
protected int |
maxiter
Maximum number of iterations.
|
distanceFunction
Constructor and Description |
---|
AbstractKMeans.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected abstract Logging |
getLogger()
Get class logger.
|
protected abstract AbstractKMeans<V,D,?> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
protected int k
protected int maxiter
protected KMeansInitialization<V extends NumberVector<?>> initializer
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractPrimitiveDistanceBasedAlgorithm.Parameterizer<NumberVector<?>,D extends Distance<D>>
config
- Parameterization to add options to.protected abstract Logging getLogger()
protected abstract AbstractKMeans<V,D,?> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer