public static class NormalizedMutualInformationMetricDescriptor.AttributeBuilder extends IdealPartitioningBasedMetricDescriptor.AttributeBuilder
NormalizedMutualInformationMetric component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
NormalizedMutualInformationMetricDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
NormalizedMutualInformationMetricDescriptor.AttributeBuilder |
clusters(org.carrot2.util.attribute.IObjectFactory<? extends List<Cluster>> value) |
NormalizedMutualInformationMetricDescriptor.AttributeBuilder |
clusters(List<Cluster> value) |
NormalizedMutualInformationMetricDescriptor.AttributeBuilder |
documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value) |
NormalizedMutualInformationMetricDescriptor.AttributeBuilder |
documents(List<Document> value) |
NormalizedMutualInformationMetricDescriptor.AttributeBuilder |
enabled(boolean value)
Calculate Normalized Mutual Information metric.
|
NormalizedMutualInformationMetricDescriptor.AttributeBuilder |
enabled(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Calculate Normalized Mutual Information metric.
|
Double |
normalizedMutualInformation()
Normalized Mutual Information of the whole cluster set.
|
partitionIdFieldName, partitionIdFieldNamepublic Double normalizedMutualInformation()
public NormalizedMutualInformationMetricDescriptor.AttributeBuilder documents(List<Document> value)
public NormalizedMutualInformationMetricDescriptor.AttributeBuilder documents(org.carrot2.util.attribute.IObjectFactory<? extends List<Document>> value)
public NormalizedMutualInformationMetricDescriptor.AttributeBuilder clusters(List<Cluster> value)
public NormalizedMutualInformationMetricDescriptor.AttributeBuilder clusters(org.carrot2.util.attribute.IObjectFactory<? extends List<Cluster>> value)
public NormalizedMutualInformationMetricDescriptor.AttributeBuilder enabled(boolean value)
public NormalizedMutualInformationMetricDescriptor.AttributeBuilder enabled(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)