Package cc.mallet.cluster.evaluate
Class ClusteringEvaluators
- java.lang.Object
-
- cc.mallet.cluster.evaluate.ClusteringEvaluator
-
- cc.mallet.cluster.evaluate.ClusteringEvaluators
-
public class ClusteringEvaluators extends ClusteringEvaluator
A list ofClusteringEvaluators
.- Since:
- 1.0
- Version:
- 1.0
- Author:
- "Aron Culotta"
-
-
Constructor Summary
Constructors Constructor Description ClusteringEvaluators(ClusteringEvaluator[] evaluators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
evaluate(Clustering truth, Clustering predicted)
java.lang.String
evaluateTotals()
double[]
getEvaluationScores(Clustering truth, Clustering predicted)
int
size()
-
Methods inherited from class cc.mallet.cluster.evaluate.ClusteringEvaluator
evaluate, evaluate
-
-
-
-
Constructor Detail
-
ClusteringEvaluators
public ClusteringEvaluators(ClusteringEvaluator[] evaluators)
-
-
Method Detail
-
evaluate
public java.lang.String evaluate(Clustering truth, Clustering predicted)
- Specified by:
evaluate
in classClusteringEvaluator
- Parameters:
truth
-predicted
-- Returns:
- A String summarizing the evaluation metric.
-
evaluateTotals
public java.lang.String evaluateTotals()
- Specified by:
evaluateTotals
in classClusteringEvaluator
- Returns:
- If the ClusteringEvaluator maintains state between calls to evaluate, this method will return the total evaluation metric since the first evaluation.
-
size
public int size()
-
getEvaluationScores
public double[] getEvaluationScores(Clustering truth, Clustering predicted)
- Specified by:
getEvaluationScores
in classClusteringEvaluator
-
-