|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.output.metrics.IdealPartitioningBasedMetricDescriptor.AttributeBuilder
org.carrot2.output.metrics.PrecisionRecallMetricDescriptor.AttributeBuilder
public static class PrecisionRecallMetricDescriptor.AttributeBuilder
Attribute map builder for the PrecisionRecallMetric component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.
| Field Summary | |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder. |
| Constructor Summary | |
|---|---|
protected |
PrecisionRecallMetricDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map. |
| Method Summary | |
|---|---|
PrecisionRecallMetricDescriptor.AttributeBuilder |
clusters(List<Cluster> value)
|
PrecisionRecallMetricDescriptor.AttributeBuilder |
documents(List<Document> value)
|
PrecisionRecallMetricDescriptor.AttributeBuilder |
enabled(boolean value)
Calculate F-measure. |
Map<Object,Double> |
fMeasureByPartition()
F-measure by partition. |
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. |
| Methods inherited from class org.carrot2.output.metrics.IdealPartitioningBasedMetricDescriptor.AttributeBuilder |
|---|
partitionIdFieldName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Map<String,Object> map
| Constructor Detail |
|---|
protected PrecisionRecallMetricDescriptor.AttributeBuilder(Map<String,Object> map)
| Method Detail |
|---|
public Double weightedAveragePrecision()
PrecisionRecallMetric.weightedAveragePrecisionpublic Double weightedAverageRecall()
PrecisionRecallMetric.weightedAverageRecallpublic Double weightedAverageFMeasure()
PrecisionRecallMetric.weightedAverageFMeasurepublic Map<Object,Double> precisionByPartition()
PrecisionRecallMetric.precisionByPartitionpublic Map<Object,Double> recallByPartition()
PrecisionRecallMetric.recallByPartitionpublic Map<Object,Double> fMeasureByPartition()
PrecisionRecallMetric.fMeasureByPartitionpublic PrecisionRecallMetricDescriptor.AttributeBuilder enabled(boolean value)
PrecisionRecallMetric.enabledpublic PrecisionRecallMetricDescriptor.AttributeBuilder documents(List<Document> value)
PrecisionRecallMetric.documentspublic PrecisionRecallMetricDescriptor.AttributeBuilder clusters(List<Cluster> value)
PrecisionRecallMetric.clusters
|
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 | ||||||||