Class MinProbability
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.predictioncheck.AbstractPredictionCheck
-
- adams.flow.transformer.predictioncheck.MinProbability
-
- All Implemented Interfaces:
adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.QuickInfoSupporter,adams.core.SizeOfHandler,Serializable
public class MinProbability extends AbstractPredictionCheck
Ensures that the highest probability on the class distribution is at least the specified value.
Adds a new boolean evaluation to the container with the name 'minprobability.passed'.
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-minimum <double> (property: minimum) The minimum probability (included) that the highest probability in the class distribution must achieve. default: 0.0 minimum: 0.0 maximum: 1.0
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MinProbability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringcheck(EvaluationContainer cont)Hook method for checks.voiddefineOptions()Adds options to the internal list of options.EvaluationContainerdoCheckPrediction(EvaluationContainer cont)Performs the actual checks on the prediction.doublegetMinimum()Returns the minimum probability (included) that the highest probability in the class distribution must achieve.StringgetQuickInfo()Returns a quick info about the object, which can be displayed in the GUI.StringglobalInfo()Returns a string describing the object.StringminimumTipText()Returns the tip text for this property.voidsetMinimum(double value)Sets the minimum probability (included) that the highest probability in the class distribution must achieve.-
Methods inherited from class adams.flow.transformer.predictioncheck.AbstractPredictionCheck
checkPrediction
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
PASSED
public static final String PASSED
the suffix for the passed flag.- See Also:
- Constant Field Values
-
m_Minimum
protected double m_Minimum
the minimum probability.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceadams.core.option.OptionHandler- Overrides:
defineOptionsin classadams.core.option.AbstractOptionHandler
-
setMinimum
public void setMinimum(double value)
Sets the minimum probability (included) that the highest probability in the class distribution must achieve.- Parameters:
value- the minimum
-
getMinimum
public double getMinimum()
Returns the minimum probability (included) that the highest probability in the class distribution must achieve.- Returns:
- the minimum
-
minimumTipText
public String minimumTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the object, which can be displayed in the GUI.- Specified by:
getQuickInfoin interfaceadams.core.QuickInfoSupporter- Overrides:
getQuickInfoin classAbstractPredictionCheck- Returns:
- null if no info available, otherwise short string
-
check
protected String check(EvaluationContainer cont)
Hook method for checks.- Overrides:
checkin classAbstractPredictionCheck- Parameters:
cont- the container to check- Returns:
- null if successful, otherwise error message
-
doCheckPrediction
public EvaluationContainer doCheckPrediction(EvaluationContainer cont)
Performs the actual checks on the prediction.- Specified by:
doCheckPredictionin classAbstractPredictionCheck- Parameters:
cont- the container to check- Returns:
- the updated container
-
-