O - Object typepublic static class KNNClassifier.Parameterizer<O> extends AbstractParameterizer
| Modifier and Type | Field and Description |
|---|---|
protected DistanceFunction<? super O> |
distanceFunction
Distance function
|
protected int |
k
Holds the value of @link #K_PARAM}.
|
static OptionID |
K_ID
Parameter to specify the number of neighbors to take into account for
classification, must be an integer greater than 0.
|
| Constructor and Description |
|---|
Parameterizer() |
| Modifier and Type | Method and Description |
|---|---|
protected KNNClassifier<O> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, makepublic static final OptionID K_ID
protected DistanceFunction<? super O> distanceFunction
protected int k
protected void makeOptions(Parameterization config)
AbstractParameterizermakeOptions in class AbstractParameterizerconfig - Parameterization to add options to.protected KNNClassifier<O> makeInstance()
AbstractParameterizermakeInstance in class AbstractParameterizerCopyright © 2019 ELKI Development Team. License information.