Class AbstractMultiLabelErrorMeasurer
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.rules.multilabel.errormeasurers.AbstractMultiLabelErrorMeasurer
-
- All Implemented Interfaces:
Configurable
,Serializable
,MultiLabelErrorMeasurer
,MultiTargetErrorMeasurer
,MOAObject
,OptionHandler
- Direct Known Subclasses:
AbstractMultiTargetErrorMeasurer
public abstract class AbstractMultiLabelErrorMeasurer extends AbstractOptionHandler implements MultiTargetErrorMeasurer
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected double
fadingErrorFactor
FloatOption
fadingErrorFactorOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description AbstractMultiLabelErrorMeasurer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
addPrediction(Prediction prediction, MultiLabelInstance inst)
void
addPrediction(Prediction prediction, Prediction trueClass)
abstract void
addPrediction(Prediction prediction, Prediction trueClass, double weight)
abstract double
getCurrentError()
abstract double
getCurrentError(int index)
abstract double[]
getCurrentErrors()
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.protected void
prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.-
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
measureByteSize
-
Methods inherited from interface moa.options.OptionHandler
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
-
-
-
-
Field Detail
-
fadingErrorFactorOption
public FloatOption fadingErrorFactorOption
-
fadingErrorFactor
protected double fadingErrorFactor
-
-
Method Detail
-
addPrediction
public abstract void addPrediction(Prediction prediction, Prediction trueClass, double weight)
- Specified by:
addPrediction
in interfaceMultiLabelErrorMeasurer
-
addPrediction
public void addPrediction(Prediction prediction, Prediction trueClass)
- Specified by:
addPrediction
in interfaceMultiLabelErrorMeasurer
-
addPrediction
public abstract void addPrediction(Prediction prediction, MultiLabelInstance inst)
- Specified by:
addPrediction
in interfaceMultiLabelErrorMeasurer
-
getCurrentError
public abstract double getCurrentError()
- Specified by:
getCurrentError
in interfaceMultiLabelErrorMeasurer
-
getCurrentError
public abstract double getCurrentError(int index)
- Specified by:
getCurrentError
in interfaceMultiLabelErrorMeasurer
-
getCurrentErrors
public abstract double[] getCurrentErrors()
- Specified by:
getCurrentErrors
in interfaceMultiLabelErrorMeasurer
-
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.- Specified by:
getDescription
in interfaceMOAObject
- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
prepareForUseImpl
protected void prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
Description copied from class:AbstractOptionHandler
This method describes the implementation of how to prepare this object for use. All classes that extends this class have to implementprepareForUseImpl
and notprepareForUse
sinceprepareForUse
callsprepareForUseImpl
.- Specified by:
prepareForUseImpl
in classAbstractOptionHandler
- Parameters:
monitor
- the TaskMonitor to userepository
- the ObjectRepository to use
-
-