Package | Description |
---|---|
org.tribuo.classification.evaluation |
Evaluation classes for multi-class classification.
|
org.tribuo.classification.sequence |
Provides infrastructure for
SequenceModel s which
emit Label s at each step of the sequence. |
Modifier and Type | Method and Description |
---|---|
LabelMetric.Context |
LabelMetric.createContext(Model<Label> model,
List<Prediction<Label>> predictions) |
protected LabelMetric.Context |
LabelEvaluator.createContext(Model<Label> model,
List<Prediction<Label>> predictions) |
Modifier and Type | Method and Description |
---|---|
ToDoubleBiFunction<MetricTarget<Label>,LabelMetric.Context> |
LabelMetrics.getImpl()
Returns the implementing function for this metric.
|
Modifier and Type | Method and Description |
---|---|
double |
LabelMetric.compute(LabelMetric.Context context) |
protected LabelEvaluation |
LabelEvaluator.createEvaluation(LabelMetric.Context ctx,
Map<MetricID<Label>,Double> results,
EvaluationProvenance provenance) |
Constructor and Description |
---|
LabelMetric(MetricTarget<Label> tgt,
String name,
ToDoubleBiFunction<MetricTarget<Label>,LabelMetric.Context> impl)
Construct a new
LabelMetric for the supplied metric target,
using the supplied function. |
Modifier and Type | Method and Description |
---|---|
protected LabelMetric.Context |
LabelSequenceEvaluator.createContext(SequenceModel<Label> model,
List<List<Prediction<Label>>> predictions) |
Modifier and Type | Method and Description |
---|---|
protected LabelSequenceEvaluation |
LabelSequenceEvaluator.createEvaluation(LabelMetric.Context ctx,
Map<MetricID<Label>,Double> results,
EvaluationProvenance provenance) |
Constructor and Description |
---|
LabelSequenceEvaluation(Map<MetricID<Label>,Double> results,
LabelMetric.Context ctx,
EvaluationProvenance provenance) |
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.