public enum ClusteringMetrics extends Enum<ClusteringMetrics>
Enum Constant and Description |
---|
ADJUSTED_MI
The normalized mutual information adjusted for chance.
|
NORMALIZED_MI
The normalized mutual information between the two clusterings
|
Modifier and Type | Method and Description |
---|---|
static double |
adjustedMI(org.tribuo.clustering.evaluation.ClusteringMetric.Context context)
Calculates the adjusted normalized mutual information between two clusterings.
|
ClusteringMetric |
forTarget(MetricTarget<ClusterID> tgt) |
BiFunction<MetricTarget<ClusterID>,org.tribuo.clustering.evaluation.ClusteringMetric.Context,Double> |
getImpl() |
static double |
normalizedMI(org.tribuo.clustering.evaluation.ClusteringMetric.Context context)
Calculates the normalized mutual information between two clusterings.
|
static ClusteringMetrics |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClusteringMetrics[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClusteringMetrics NORMALIZED_MI
public static final ClusteringMetrics ADJUSTED_MI
public static ClusteringMetrics[] values()
for (ClusteringMetrics c : ClusteringMetrics.values()) System.out.println(c);
public static ClusteringMetrics valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic BiFunction<MetricTarget<ClusterID>,org.tribuo.clustering.evaluation.ClusteringMetric.Context,Double> getImpl()
public ClusteringMetric forTarget(MetricTarget<ClusterID> tgt)
public static double adjustedMI(org.tribuo.clustering.evaluation.ClusteringMetric.Context context)
context
- The context containing the predicted clustering and the ground truth.public static double normalizedMI(org.tribuo.clustering.evaluation.ClusteringMetric.Context context)
context
- The context containing the predicted clustering and the ground truth.Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.