Class LabelEvaluator

All Implemented Interfaces:
Evaluator<Label,LabelEvaluation>

public final class LabelEvaluator extends AbstractEvaluator<Label,LabelMetric.Context,LabelEvaluation,LabelMetric>
An Evaluator for Labels.

The default set of metrics is taken from LabelMetrics. If the supplied model generates probabilities, then it also calculates LabelMetrics.AUCROC and LabelMetrics.AVERAGED_PRECISION.

If the dataset contains an unknown Label (as generated by LabelFactory.getUnknownOutput()) or a valid Label which is outside of the domain of the Model then the evaluate methods will throw IllegalArgumentException with an appropriate message.