|
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.NormalizedMutualInformationMetric
public class NormalizedMutualInformationMetric
Computes Normalized Mutual Information (NMI) metric for the cluster set.
Metrics will be calculated only if all input documents have non-blank
Document.PARTITIONS.
| Field Summary | |
|---|---|
List<Cluster> |
clusters
|
List<Document> |
documents
|
boolean |
enabled
Calculate Normalized Mutual Information metric. |
Double |
normalizedMutualInformation
Normalized Mutual Information of the whole cluster set. |
String |
partitionIdFieldName
Partition id field name. |
| Constructor Summary | |
|---|---|
NormalizedMutualInformationMetric()
|
|
| 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 Double normalizedMutualInformation
public List<Document> documents
public List<Cluster> clusters
public boolean enabled
public String partitionIdFieldName
| Constructor Detail |
|---|
public NormalizedMutualInformationMetric()
| 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 | ||||||||