public static class EvaluateRetrievalPerformance.KNNEvaluator extends Object
Modifier and Type | Field and Description |
---|---|
static EvaluateRetrievalPerformance.KNNEvaluator |
STATIC
Static instance.
|
Constructor and Description |
---|
EvaluateRetrievalPerformance.KNNEvaluator() |
Modifier and Type | Method and Description |
---|---|
int |
countkNN(TObjectIntHashMap<Object> counters,
Object l)
Counting helper for kNN classification.
|
void |
evaluateKNN(double[] knnperf,
ModifiableDoubleDBIDList nlist,
Relation<?> lrelation,
TObjectIntHashMap<Object> counters,
Object label)
Evaluate by simulating kNN classification for k=1...maxk
|
public static final EvaluateRetrievalPerformance.KNNEvaluator STATIC
public EvaluateRetrievalPerformance.KNNEvaluator()
public void evaluateKNN(double[] knnperf, ModifiableDoubleDBIDList nlist, Relation<?> lrelation, 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 objectpublic int countkNN(TObjectIntHashMap<Object> counters, Object l)
counters
- Counter storagel
- Object labelsCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.