@Alias(value="de.lmu.ifi.dbs.elki.evaluation.paircounting.EvaluatePairCountingFMeasure") public class EvaluateClustering extends java.lang.Object implements Evaluator
Modifier and Type | Class and Description |
---|---|
static class |
EvaluateClustering.Parameterizer
Parameterization class.
|
static class |
EvaluateClustering.ScoreResult
Result object for outlier score judgements.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Logger for debug output.
|
private boolean |
noiseSpecialHandling
Apply special handling to noise "clusters".
|
private ClusteringAlgorithm<?> |
referencealg
Reference algorithm.
|
private boolean |
selfPairing
Use self-pairing in pair-counting measures
|
Constructor and Description |
---|
EvaluateClustering(ClusteringAlgorithm<?> referencealg,
boolean noiseSpecialHandling,
boolean selfPairing)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static double |
evaluateRanking(ScoreEvaluation eval,
Cluster<?> clus,
DoubleDBIDList ranking)
Evaluate given a cluster (of positive elements) and a scoring list.
|
protected void |
evaluteResult(Database db,
Clustering<?> c,
Clustering<?> refc)
Evaluate a clustering result.
|
private boolean |
isReferenceResult(Clustering<?> t)
Test if a clustering result is a valid reference result.
|
void |
processNewResult(ResultHierarchy hier,
Result newResult)
Process a result.
|
private static final Logging LOG
private ClusteringAlgorithm<?> referencealg
private boolean noiseSpecialHandling
private boolean selfPairing
public EvaluateClustering(ClusteringAlgorithm<?> referencealg, boolean noiseSpecialHandling, boolean selfPairing)
referencealg
- Reference clusteringnoiseSpecialHandling
- Noise handling flagselfPairing
- Self-pairing flagpublic static double evaluateRanking(ScoreEvaluation eval, Cluster<?> clus, DoubleDBIDList ranking)
eval
- Evaluation methodclus
- Cluster objectranking
- Object rankingpublic void processNewResult(ResultHierarchy hier, Result newResult)
ResultProcessor
processNewResult
in interface ResultProcessor
hier
- The base of the result tree.newResult
- Newly added result subtree.protected void evaluteResult(Database db, Clustering<?> c, Clustering<?> refc)
db
- Databasec
- Clusteringrefc
- Reference clusteringprivate boolean isReferenceResult(Clustering<?> t)
t
- Clustering to test.true
if it is considered to be a reference result.Copyright © 2019 ELKI Development Team. License information.