
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 Long |
seed
Random seed
|
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, makepublic static final OptionID SHARE_ID
Key: -randomknn.share
public static final OptionID SEED_ID
Key: -randomknn.seed
private double share
private Long seed
public RandomSampleKNNPreprocessor.Factory.Parameterizer()
protected void makeOptions(Parameterization config)
AbstractParameterizermakeOptions in class AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>config - Parameterization to add options to.protected RandomSampleKNNPreprocessor.Factory<O,D> makeInstance()
AbstractParameterizermakeInstance in class AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>