public abstract class AbstractMultiLabelErrorMeasurer extends AbstractOptionHandler implements MultiTargetErrorMeasurer
Modifier and Type | Field and Description |
---|---|
protected double |
fadingErrorFactor |
FloatOption |
fadingErrorFactorOption |
config
Constructor and Description |
---|
AbstractMultiLabelErrorMeasurer() |
Modifier and Type | Method and 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.
|
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
measureByteSize
public FloatOption fadingErrorFactorOption
protected double fadingErrorFactor
public abstract void addPrediction(Prediction prediction, Prediction trueClass, double weight)
addPrediction
in interface MultiLabelErrorMeasurer
public void addPrediction(Prediction prediction, Prediction trueClass)
addPrediction
in interface MultiLabelErrorMeasurer
public abstract void addPrediction(Prediction prediction, MultiLabelInstance inst)
addPrediction
in interface MultiLabelErrorMeasurer
public abstract double getCurrentError()
getCurrentError
in interface MultiLabelErrorMeasurer
public abstract double getCurrentError(int index)
getCurrentError
in interface MultiLabelErrorMeasurer
public abstract double[] getCurrentErrors()
getCurrentErrors
in interface MultiLabelErrorMeasurer
public void getDescription(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 indentprotected 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 useCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.