Class PairwiseScorer
- java.lang.Object
-
- cc.mallet.cluster.clustering_scorer.PairwiseScorer
-
- All Implemented Interfaces:
ClusteringScorer
public class PairwiseScorer extends java.lang.Object implements ClusteringScorer
For each pair of Instances, if the pair is predicted to be in the same cluster, increment the total by the evaluator's score for merging the two. Else, increment by 1 - evaluator score. Divide by number of pairs.- Author:
- culotta
-
-
Constructor Summary
Constructors Constructor Description PairwiseScorer(NeighborEvaluator evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
score(Clustering clustering)
-
-
-
Constructor Detail
-
PairwiseScorer
public PairwiseScorer(NeighborEvaluator evaluator)
-
-
Method Detail
-
score
public double score(Clustering clustering)
- Specified by:
score
in interfaceClusteringScorer
-
-