Package | Description |
---|---|
org.tribuo.classification.evaluation |
Evaluation classes for multi-class classification.
|
org.tribuo.evaluation.metrics |
This package contains the infrastructure classes for building evaluation metrics.
|
Modifier and Type | Method and Description |
---|---|
static <T extends Classifiable<T>> |
ConfusionMetrics.accuracy(EvaluationMetric.Average average,
ConfusionMatrix<T> cm)
Calculates the accuracy using the specified average type and confusion matrix.
|
Modifier and Type | Method and Description |
---|---|
static EvaluationMetric.Average |
EvaluationMetric.Average.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvaluationMetric.Average[] |
EvaluationMetric.Average.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
Optional<EvaluationMetric.Average> |
MetricTarget.getAverageTarget()
Returns the average this metric computes, or
Optional.empty() if it targets an output. |
Constructor and Description |
---|
MetricTarget(EvaluationMetric.Average avg)
Builds a metric target for an average.
|
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.