O
- Object typeD
- Distance typepublic static class RandomSampleKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>> extends AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D>
Modifier and Type | Field and Description |
---|---|
private RandomFactory |
rnd
Random generator
|
static OptionID |
SEED_ID
Random number generator seed.
|
private double |
share
Relative share of objects to get
|
static OptionID |
SHARE_ID
Parameter to specify how many objects to consider for computing the
kNN.
|
distanceFunction, k
Constructor and Description |
---|
RandomSampleKNNPreprocessor.Factory.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected RandomSampleKNNPreprocessor.Factory<O,D> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
public static final OptionID SHARE_ID
Key: -randomknn.share
public static final OptionID SEED_ID
Key: -randomknn.seed
private double share
private RandomFactory rnd
public RandomSampleKNNPreprocessor.Factory.Parameterizer()
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>
config
- Parameterization to add options to.protected RandomSampleKNNPreprocessor.Factory<O,D> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>