@Bindable public class NormalizedMutualInformationMetric extends IdealPartitioningBasedMetric
Metrics will be calculated only if all input documents have non-blank
Document.PARTITIONS.
| Modifier and Type | Field and Description |
|---|---|
List<Cluster> |
clusters |
List<Document> |
documents |
boolean |
enabled
Calculate Normalized Mutual Information metric.
|
Double |
normalizedMutualInformation
Normalized Mutual Information of the whole cluster set.
|
partitionIdFieldName| Constructor and Description |
|---|
NormalizedMutualInformationMetric() |
| Modifier and Type | Method and Description |
|---|---|
void |
calculate()
Triggers calculation of the metric.
|
boolean |
isEnabled()
Return
true if this metric should be calculated. |
@Processing @Output @Attribute public Double normalizedMutualInformation
@Processing @Input @Attribute(key="documents") public List<Document> documents
@Processing @Input @Attribute(key="clusters") public List<Cluster> clusters
@Processing @Input @Attribute public boolean enabled
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.