public static class EvaluateRetrievalPerformance.KNNEvaluator extends Object
Modifier and Type | Field and Description |
---|---|
static EvaluateRetrievalPerformance.KNNEvaluator |
STATIC
Static instance.
|
Constructor and Description |
---|
KNNEvaluator() |
Modifier and Type | Method and Description |
---|---|
int |
countkNN(gnu.trove.map.hash.TObjectIntHashMap<Object> counters,
Object l)
Counting helper for kNN classification.
|
void |
evaluateKNN(double[] knnperf,
ModifiableDoubleDBIDList nlist,
Relation<?> lrelation,
gnu.trove.map.hash.TObjectIntHashMap<Object> counters,
Object label)
Evaluate by simulating kNN classification for k=1...maxk
|
public static final EvaluateRetrievalPerformance.KNNEvaluator STATIC
public void evaluateKNN(double[] knnperf, ModifiableDoubleDBIDList nlist, Relation<?> lrelation, gnu.trove.map.hash.TObjectIntHashMap<Object> counters, Object label)
knnperf
- Output data storagenlist
- Neighbor listlrelation
- Label relationcounters
- (Reused) map for counting the class occurrences.label
- Label(s) of query objectCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.