cc.mallet.cluster.clustering_scorer
Class PairwiseScorer

java.lang.Object
  extended by 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
PairwiseScorer(NeighborEvaluator evaluator)
           
 
Method Summary
 double score(Clustering clustering)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairwiseScorer

public PairwiseScorer(NeighborEvaluator evaluator)
Method Detail

score

public double score(Clustering clustering)
Specified by:
score in interface ClusteringScorer