public static class PartitionApproximationMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>> extends AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D>
Modifier and Type | Field and Description |
---|---|
protected int |
partitions
Number of partitions
|
static OptionID |
PARTITIONS_ID
Parameter to specify the number of partitions to use for materializing
the kNN.
|
private RandomFactory |
rnd
Random generator
|
static OptionID |
SEED_ID
Parameter to specify the random number generator.
|
distanceFunction, k
Constructor and Description |
---|
PartitionApproximationMaterializeKNNPreprocessor.Factory.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected PartitionApproximationMaterializeKNNPreprocessor.Factory<O,D> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
public static final OptionID PARTITIONS_ID
Key: -partknn.p
public static final OptionID SEED_ID
Key: -partknn.seed
protected int partitions
private RandomFactory rnd
public PartitionApproximationMaterializeKNNPreprocessor.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 PartitionApproximationMaterializeKNNPreprocessor.Factory<O,D> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractMaterializeKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>