Class ErrorMeasurement
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.rules.errormeasurers.ErrorMeasurement
-
- All Implemented Interfaces:
Serializable
,MOAObject
- Direct Known Subclasses:
MeanAbsoluteDeviation
,RootMeanSquaredError
public abstract class ErrorMeasurement extends AbstractMOAObject
Computes error measures with a fading factor fadingErrorFactorOption - Fading factor- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double
fadingErrorFactor
FloatOption
fadingErrorFactorOption
-
Constructor Summary
Constructors Constructor Description ErrorMeasurement()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addPrediction(double[] prediction, Instance inst)
abstract double
getCurrentError()
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize, toString
-
-
-
-
Field Detail
-
fadingErrorFactorOption
public FloatOption fadingErrorFactorOption
-
fadingErrorFactor
protected double fadingErrorFactor
-
-
Method Detail
-
addPrediction
public abstract void addPrediction(double[] prediction, Instance inst)
-
getCurrentError
public abstract double getCurrentError()
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
-