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, make
public static final OptionID K_ID
protected DistanceFunction<? super O> distanceFunction
protected int k
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractParameterizer
config
- Parameterization to add options to.protected KNNClassifier<O> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer
Copyright © 2019 ELKI Development Team. License information.