|
Carrot2 v3.5.2
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.output.metrics.PrecisionRecallMetric
public class PrecisionRecallMetric
Computes precision, recall and F-metric for all partitions against the provided clusters.
Metrics will be calculated only if all input documents have non-blank
Document.PARTITIONS.
| Field Summary | |
|---|---|
static String |
BEST_F_MEASURE_PARTITION
Partition on which the cluster achieved best F-Score value. |
List<Cluster> |
clusters
|
List<Document> |
documents
|
boolean |
enabled
Calculate F-measure. |
Map<Object,Double> |
fMeasureByPartition
F-measure by partition. |
String |
partitionIdFieldName
Partition id field name. |
Map<Object,Double> |
precisionByPartition
Precision by partition. |
Map<Object,Double> |
recallByPartition
Recall by partition. |
Double |
weightedAverageFMeasure
Average F-measure of the whole cluster set, weighted by cluster size. |
Double |
weightedAveragePrecision
Average precision of the whole cluster set, weighted by cluster size. |
Double |
weightedAverageRecall
Average recall of the whole cluster set, weighted by cluster size. |
| Constructor Summary | |
|---|---|
PrecisionRecallMetric()
|
|
| Method Summary | |
|---|---|
void |
calculate()
Triggers calculation of the metric. |
boolean |
isEnabled()
Return true if this metric should be calculated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String BEST_F_MEASURE_PARTITION
Object. See Document.PARTITIONS for more information.
public Double weightedAveragePrecision
public Double weightedAverageRecall
public Double weightedAverageFMeasure
public Map<Object,Double> precisionByPartition
public Map<Object,Double> recallByPartition
public Map<Object,Double> fMeasureByPartition
public boolean enabled
public List<Document> documents
public List<Cluster> clusters
public String partitionIdFieldName
| Constructor Detail |
|---|
public PrecisionRecallMetric()
| Method Detail |
|---|
public void calculate()
IClusteringMetricProcessing Input attributes
will have been bound before a call to this method.
public boolean isEnabled()
IClusteringMetrictrue if this metric should be calculated.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||