InputType
- The input type to evaluate.TargetType
- The type of the ground-truth targets (the labels).EstimateType
- The type of estimate to evaluate.ResultType
- The output type of the performance evalautor.public abstract class AbstractSupervisedPerformanceEvaluator<InputType,TargetType,EstimateType,ResultType> extends AbstractCloneableSerializable implements SupervisedPerformanceEvaluator<InputType,TargetType,EstimateType,ResultType>, Summarizer<TargetEstimatePair<? extends TargetType,? extends EstimateType>,ResultType>
AbstractSupervisedPerformanceEvaluator
class contains an
abstract implementation of the SupervisedPerformanceEvaluator
class.
It does the conversion of a dataset of input-target pairs to a set of
target-estimate pairs given the estimate returned by the evaluator whose
performance is being assessed.Constructor and Description |
---|
AbstractSupervisedPerformanceEvaluator()
Creates a new AbstractSupervisedPerformanceEvaluator.
|
Modifier and Type | Method and Description |
---|---|
abstract ResultType |
evaluatePerformance(java.util.Collection<? extends TargetEstimatePair<? extends TargetType,? extends EstimateType>> data)
Evaluates the performance accuracy of the given estimates against the
given targets.
|
ResultType |
evaluatePerformance(Evaluator<? super InputType,? extends EstimateType> evaluator,
java.util.Collection<? extends InputOutputPair<? extends InputType,TargetType>> data)
Evaluates the performance accuracy of the given estimates against the
given targets.
|
ResultType |
summarize(java.util.Collection<? extends TargetEstimatePair<? extends TargetType,? extends EstimateType>> data)
Creates a summary of the given collection of data.
|
clone
public AbstractSupervisedPerformanceEvaluator()
public ResultType evaluatePerformance(Evaluator<? super InputType,? extends EstimateType> evaluator, java.util.Collection<? extends InputOutputPair<? extends InputType,TargetType>> data)
evaluatePerformance
in interface PerformanceEvaluator<Evaluator<? super InputType,? extends EstimateType>,java.util.Collection<? extends InputOutputPair<? extends InputType,TargetType>>,ResultType>
evaluator
- Evaluator to generate estimatesdata
- The target-estimate pairs to use to evaluate performance.public ResultType summarize(java.util.Collection<? extends TargetEstimatePair<? extends TargetType,? extends EstimateType>> data)
Summarizer
summarize
in interface Summarizer<TargetEstimatePair<? extends TargetType,? extends EstimateType>,ResultType>
data
- The collection of data to summarize.public abstract ResultType evaluatePerformance(java.util.Collection<? extends TargetEstimatePair<? extends TargetType,? extends EstimateType>> data)
SupervisedPerformanceEvaluator
evaluatePerformance
in interface SupervisedPerformanceEvaluator<InputType,TargetType,EstimateType,ResultType>
data
- The target-estimate pairs to use to evaluate performance.