Configurable
, java.io.Serializable
, CapabilitiesHandler
, LearningPerformanceEvaluator<Example<Instance>>
, RegressionPerformanceEvaluator
, MOAObject
, OptionHandler
public class WindowRegressionPerformanceEvaluator extends AbstractOptionHandler implements RegressionPerformanceEvaluator
Modifier and Type | Class | Description |
---|---|---|
class |
WindowRegressionPerformanceEvaluator.Estimator |
Modifier and Type | Field | Description |
---|---|---|
protected WindowRegressionPerformanceEvaluator.Estimator |
averageError |
|
protected int |
numClasses |
|
protected WindowRegressionPerformanceEvaluator.Estimator |
squareError |
|
protected double |
TotalweightObserved |
|
protected WindowRegressionPerformanceEvaluator.Estimator |
weightObserved |
|
IntOption |
widthOption |
config
Constructor | Description |
---|---|
WindowRegressionPerformanceEvaluator() |
Modifier and Type | Method | Description |
---|---|---|
void |
addResult(Example<Instance> example,
double[] prediction) |
Adds a learning result to this evaluator.
|
void |
addResult(Example<Instance> testInst,
Prediction prediction) |
|
void |
getDescription(java.lang.StringBuilder sb,
int indent) |
Returns a string representation of this object.
|
double |
getMeanError() |
|
Measurement[] |
getPerformanceMeasurements() |
Gets the current measurements monitored by this evaluator.
|
double |
getSquareError() |
|
double |
getTotalWeightObserved() |
|
void |
prepareForUseImpl(TaskMonitor monitor,
ObjectRepository repository) |
This method describes the implementation of how to prepare this object for use.
|
void |
reset() |
Resets this evaluator.
|
void |
reset(int numClasses) |
copy, measureByteSize, measureByteSize, toString
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
getCapabilities
defineImmutableCapabilities
copy, measureByteSize
public IntOption widthOption
protected double TotalweightObserved
protected WindowRegressionPerformanceEvaluator.Estimator weightObserved
protected WindowRegressionPerformanceEvaluator.Estimator squareError
protected WindowRegressionPerformanceEvaluator.Estimator averageError
protected int numClasses
public WindowRegressionPerformanceEvaluator()
public void reset()
LearningPerformanceEvaluator
reset
in interface LearningPerformanceEvaluator<Example<Instance>>
public void reset(int numClasses)
public void addResult(Example<Instance> example, double[] prediction)
LearningPerformanceEvaluator
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
example
- the example to be classifiedprediction
- an array containing the estimated membership
probabilities of the test instance in each classpublic Measurement[] getPerformanceMeasurements()
LearningPerformanceEvaluator
getPerformanceMeasurements
in interface LearningPerformanceEvaluator<Example<Instance>>
public double getTotalWeightObserved()
public double getMeanError()
public double getSquareError()
public void getDescription(java.lang.StringBuilder sb, int indent)
MOAObject
AbstractMOAObject.toString
to give a string representation of the object.getDescription
in interface MOAObject
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indentpublic void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
AbstractOptionHandler
prepareForUseImpl
and not prepareForUse
since
prepareForUse
calls prepareForUseImpl
.prepareForUseImpl
in class AbstractOptionHandler
monitor
- the TaskMonitor to userepository
- the ObjectRepository to usepublic void addResult(Example<Instance> testInst, Prediction prediction)
addResult
in interface LearningPerformanceEvaluator<Example<Instance>>
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.