cc.mallet.cluster.clustering_scorer
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.
-
-
Constructor Summary
Constructors Constructor and Description PairwiseScorer(NeighborEvaluator evaluator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublescore(Clustering clustering)
-
-
-
Constructor Detail
-
PairwiseScorer
public PairwiseScorer(NeighborEvaluator evaluator)
-
-
Method Detail
-
score
public double score(Clustering clustering)
- Specified by:
scorein interfaceClusteringScorer
-
-
DataMelt 3.0 © DataMelt by jWork.ORG