public static class AveragePrecisionAtK.Parameterizer<V extends NumberVector<?>,D extends NumberDistance<D,?>> extends AbstractDistanceBasedAlgorithm.Parameterizer<V,D>
Modifier and Type | Field and Description |
---|---|
protected boolean |
includeSelf
Include query object in evaluation.
|
static OptionID |
INCLUDESELF_ID
Parameter to include the query object.
|
protected int |
k
Neighborhood size.
|
private static OptionID |
K_ID
Parameter k to compute the average precision at.
|
protected double |
sampling
Relative amount of data to sample.
|
static OptionID |
SAMPLING_ID
Parameter to enable sampling.
|
protected Long |
seed
Random sampling seed.
|
static OptionID |
SEED_ID
Parameter to control the sampling random seed.
|
distanceFunction
Constructor and Description |
---|
AveragePrecisionAtK.Parameterizer() |
Modifier and Type | Method and Description |
---|---|
protected AveragePrecisionAtK<V,D> |
makeInstance()
Make an instance after successful configuration.
|
protected void |
makeOptions(Parameterization config)
Add all options.
|
configure, make
private static final OptionID K_ID
public static final OptionID SAMPLING_ID
public static final OptionID SEED_ID
public static final OptionID INCLUDESELF_ID
protected int k
protected double sampling
protected Long seed
protected boolean includeSelf
protected void makeOptions(Parameterization config)
AbstractParameterizer
makeOptions
in class AbstractDistanceBasedAlgorithm.Parameterizer<V extends NumberVector<?>,D extends NumberDistance<D,?>>
config
- Parameterization to add options to.protected AveragePrecisionAtK<V,D> makeInstance()
AbstractParameterizer
makeInstance
in class AbstractParameterizer