Class RelativeRootMeanSquaredErrorMT
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.rules.multilabel.errormeasurers.AbstractMultiLabelErrorMeasurer
-
- moa.classifiers.rules.multilabel.errormeasurers.AbstractMultiTargetErrorMeasurer
-
- moa.classifiers.rules.multilabel.errormeasurers.RelativeRootMeanSquaredErrorMT
-
- All Implemented Interfaces:
Configurable
,Serializable
,MultiLabelErrorMeasurer
,MultiTargetErrorMeasurer
,MOAObject
,OptionHandler
public class RelativeRootMeanSquaredErrorMT extends AbstractMultiTargetErrorMeasurer
Relative Root Mean Squared Error for multitarget and with fading factor- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
hasStarted
protected int
numLearnedOutputs
protected static long
serialVersionUID
protected double[]
sumSquaredError
protected double[]
sumSquaredErrorToTargetMean
protected double[]
sumY
protected double
weightSeen
-
Fields inherited from class moa.classifiers.rules.multilabel.errormeasurers.AbstractMultiLabelErrorMeasurer
fadingErrorFactor, fadingErrorFactorOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description RelativeRootMeanSquaredErrorMT()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPrediction(Prediction prediction, Prediction trueClass, double weight)
double
getCurrentError()
double
getCurrentError(int index)
double[]
getCurrentErrors()
-
Methods inherited from class moa.classifiers.rules.multilabel.errormeasurers.AbstractMultiTargetErrorMeasurer
addPrediction
-
Methods inherited from class moa.classifiers.rules.multilabel.errormeasurers.AbstractMultiLabelErrorMeasurer
addPrediction, getDescription, prepareForUseImpl
-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
-
Methods inherited from class moa.AbstractMOAObject
copy, measureByteSize, measureByteSize, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface moa.MOAObject
getDescription, measureByteSize
-
Methods inherited from interface moa.classifiers.rules.multilabel.errormeasurers.MultiLabelErrorMeasurer
addPrediction
-
Methods inherited from interface moa.options.OptionHandler
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Field Detail
-
weightSeen
protected double weightSeen
-
sumY
protected double[] sumY
-
sumSquaredError
protected double[] sumSquaredError
-
sumSquaredErrorToTargetMean
protected double[] sumSquaredErrorToTargetMean
-
serialVersionUID
protected static final long serialVersionUID
- See Also:
- Constant Field Values
-
hasStarted
protected boolean hasStarted
-
numLearnedOutputs
protected int numLearnedOutputs
-
-
Method Detail
-
addPrediction
public void addPrediction(Prediction prediction, Prediction trueClass, double weight)
- Specified by:
addPrediction
in interfaceMultiLabelErrorMeasurer
- Specified by:
addPrediction
in classAbstractMultiLabelErrorMeasurer
-
getCurrentError
public double getCurrentError()
- Specified by:
getCurrentError
in interfaceMultiLabelErrorMeasurer
- Specified by:
getCurrentError
in classAbstractMultiLabelErrorMeasurer
-
getCurrentError
public double getCurrentError(int index)
- Specified by:
getCurrentError
in interfaceMultiLabelErrorMeasurer
- Specified by:
getCurrentError
in classAbstractMultiLabelErrorMeasurer
-
getCurrentErrors
public double[] getCurrentErrors()
- Specified by:
getCurrentErrors
in interfaceMultiLabelErrorMeasurer
- Specified by:
getCurrentErrors
in classAbstractMultiLabelErrorMeasurer
-
-