Package moa.classifiers.active.budget
Class FixedBM
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.options.AbstractOptionHandler
-
- moa.classifiers.active.budget.FixedBM
-
- All Implemented Interfaces:
Configurable
,Serializable
,BudgetManager
,MOAObject
,OptionHandler
public class FixedBM extends AbstractOptionHandler implements BudgetManager
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description FloatOption
budgetOption
-
Fields inherited from class moa.options.AbstractOptionHandler
config
-
-
Constructor Summary
Constructors Constructor Description FixedBM()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.int
getLastLabelAcqReport()
Returns the number of labels that have been chosen for acquisition since the last report.String
getPurposeString()
Dictionary with option texts and objectsboolean
isAbove(double value)
Returns true if the given value is above an internal threshold and the label should be acquired.protected void
prepareForUseImpl(TaskMonitor monitor, ObjectRepository repository)
This method describes the implementation of how to prepare this object for use.void
resetLearning()
Resets the budget manager.-
Methods inherited from class moa.options.AbstractOptionHandler
copy, getCLICreationString, getOptions, getPreparedClassOption, 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
-
-
-
-
Field Detail
-
budgetOption
public FloatOption budgetOption
-
-
Method Detail
-
getPurposeString
public String getPurposeString()
Description copied from class:AbstractOptionHandler
Dictionary with option texts and objects- Specified by:
getPurposeString
in interfaceOptionHandler
- Overrides:
getPurposeString
in classAbstractOptionHandler
- Returns:
- the string with the purpose of this object
-
isAbove
public boolean isAbove(double value)
Description copied from interface:BudgetManager
Returns true if the given value is above an internal threshold and the label should be acquired.- Specified by:
isAbove
in interfaceBudgetManager
-
getLastLabelAcqReport
public int getLastLabelAcqReport()
Description copied from interface:BudgetManager
Returns the number of labels that have been chosen for acquisition since the last report.- Specified by:
getLastLabelAcqReport
in interfaceBudgetManager
-
resetLearning
public void resetLearning()
Description copied from interface:BudgetManager
Resets the budget manager.- Specified by:
resetLearning
in interfaceBudgetManager
-
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
-
-