V - Vector type@Title(value="Evaluate Ranking Quality") @Description(value="Evaluates the effectiveness of a distance function via the obtained rankings.") public class EvaluateRankingQuality<V extends NumberVector> extends AbstractDistanceBasedAlgorithm<V,CollectionResult<double[]>>
RankingQualityHistogram, this method uses a binning
based on the centrality of objects. This allows analyzing whether or not a
particular distance degrades for the outer parts of a cluster.
TODO: Allow fixed binning range, configurable
TODO: Add sampling| Modifier and Type | Class and Description |
|---|---|
static class |
EvaluateRankingQuality.Parameterizer<V extends NumberVector>
Parameterization class.
|
| Modifier and Type | Field and Description |
|---|---|
private static Logging |
LOG
The logger for this class.
|
(package private) int |
numbins
Number of bins to use.
|
ALGORITHM_IDDISTANCE_FUNCTION_ID| Constructor and Description |
|---|
EvaluateRankingQuality(DistanceFunction<? super V> distanceFunction,
int numbins)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TypeInformation[] |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
protected Logging |
getLogger()
Get the (STATIC) logger for this class.
|
HistogramResult |
run(Database database)
Runs the algorithm.
|
getDistanceFunctionprivate static final Logging LOG
int numbins
public EvaluateRankingQuality(DistanceFunction<? super V> distanceFunction, int numbins)
distanceFunction - Distance functionnumbins - Number of binspublic HistogramResult run(Database database)
Algorithmrun in interface Algorithmrun in class AbstractAlgorithm<CollectionResult<double[]>>database - the database to run the algorithm onpublic TypeInformation[] getInputTypeRestriction()
AbstractAlgorithmgetInputTypeRestriction in interface AlgorithmgetInputTypeRestriction in class AbstractAlgorithm<CollectionResult<double[]>>protected Logging getLogger()
AbstractAlgorithmgetLogger in class AbstractAlgorithm<CollectionResult<double[]>>Copyright © 2019 ELKI Development Team. License information.