Uses of Class
org.tribuo.classification.evaluation.LabelMetric.Context
Package
Description
Evaluation classes for multi-class classification.
Provides infrastructure for
SequenceModel
s which
emit Label
s at each step of the sequence.-
Uses of LabelMetric.Context in org.tribuo.classification.evaluation
Modifier and TypeMethodDescriptionprotected LabelMetric.Context
LabelEvaluator.createContext
(Model<Label> model, List<Prediction<Label>> predictions) LabelMetric.createContext
(Model<Label> model, List<Prediction<Label>> predictions) Modifier and TypeMethodDescriptionLabelMetrics.getImpl()
Returns the implementing function for this metric.Modifier and TypeMethodDescriptiondouble
LabelMetric.compute
(LabelMetric.Context context) protected LabelEvaluation
LabelEvaluator.createEvaluation
(LabelMetric.Context ctx, Map<MetricID<Label>, Double> results, EvaluationProvenance provenance) ModifierConstructorDescriptionLabelMetric
(MetricTarget<Label> tgt, String name, ToDoubleBiFunction<MetricTarget<Label>, LabelMetric.Context> impl) Construct a newLabelMetric
for the supplied metric target, using the supplied function. -
Uses of LabelMetric.Context in org.tribuo.classification.sequence
Modifier and TypeMethodDescriptionprotected LabelMetric.Context
LabelSequenceEvaluator.createContext
(SequenceModel<Label> model, List<List<Prediction<Label>>> predictions) Modifier and TypeMethodDescriptionprotected LabelSequenceEvaluation
LabelSequenceEvaluator.createEvaluation
(LabelMetric.Context ctx, Map<MetricID<Label>, Double> results, EvaluationProvenance provenance) ModifierConstructorDescriptionprotected
LabelSequenceEvaluation
(Map<MetricID<Label>, Double> results, LabelMetric.Context ctx, EvaluationProvenance provenance) Constructs a LabelSequenceEvaluation using the supplied parameters.