Package org.tribuo.evaluation
Interface Evaluation<T extends Output<T>>
- Type Parameters:
T
- The output type.
- All Superinterfaces:
com.oracle.labs.mlrg.olcut.provenance.Provenancable<EvaluationProvenance>
- All Known Subinterfaces:
AnomalyEvaluation
,ClassifierEvaluation<T>
,ClusteringEvaluation
,LabelEvaluation
,MultiLabelEvaluation
,RegressionEvaluation
- All Known Implementing Classes:
MultiLabelEvaluationImpl
public interface Evaluation<T extends Output<T>>
extends com.oracle.labs.mlrg.olcut.provenance.Provenancable<EvaluationProvenance>
An immutable evaluation of a specific model and dataset.
-
Method Summary
Methods inherited from interface com.oracle.labs.mlrg.olcut.provenance.Provenancable
getProvenance
-
Method Details
-
asMap
Get a map of all the metrics stored in this evaluation. The keys are metric id's and the values are their corresponding computed results.- Returns:
- a map of all stored results
-
get
Gets the value associated with the specific metric. ThrowsIllegalArgumentException
if the metric is unknown.- Parameters:
key
- The metric to lookup.- Returns:
- The value for that metric.
-
getPredictions
List<Prediction<T>> getPredictions()Gets the predictions stored in this evaluation.- Returns:
- The predictions.
-