public static class EvaluateRetrievalPerformance.KNNEvaluator
extends java.lang.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(it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<java.lang.Object> counters,
java.lang.Object l)
Counting helper for kNN classification.
|
void |
evaluateKNN(double[] knnperf,
ModifiableDoubleDBIDList nlist,
Relation<?> lrelation,
it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<java.lang.Object> counters,
java.lang.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,
it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<java.lang.Object> counters,
java.lang.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(it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<java.lang.Object> counters,
java.lang.Object l)
counters - Counter storagel - Object labelsCopyright © 2019 ELKI Development Team. License information.