public abstract class Evaluator<T> extends Object
Evaluator
is an abstract base class for evaluators.
Evaluation results are the arithmetic mean of the
scores calculated for each reference sample.Constructor and Description |
---|
Evaluator(EvaluationMonitor<T>... aListeners) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(ObjectStream<T> samples)
Reads all sample objects from the stream
and evaluates each sample object with
evaluateSample(Object) method. |
void |
evaluateSample(T sample)
Evaluates the given reference object.
|
public Evaluator(EvaluationMonitor<T>... aListeners)
public void evaluateSample(T sample)
processSample(Object)
note: this method will be changed to private in the future.
Implementations should override processSample(Object)
instead.
If this method is override, the implementation has to update the score
after every invocation.
sample
- the sample to be evaluatedpublic void evaluate(ObjectStream<T> samples) throws IOException
evaluateSample(Object)
method.samples
- the stream of reference which
should be evaluated.IOException
- IOExceptionCopyright © 2015 The Apache Software Foundation. All rights reserved.