Class VotedFolds
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.tools.wekainvestigator.tab.classifytab.evaluation.finalmodel.AbstractFinalModelGenerator
-
- adams.gui.tools.wekainvestigator.tab.classifytab.evaluation.finalmodel.VotedFolds
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Serializable
public class VotedFolds extends AbstractFinalModelGenerator
Generates a Vote meta-classifier from the models from the cross-validation folds.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.classifiers.meta.Vote
m_Template
the vote template.-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description VotedFolds()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.void
generate(AbstractClassifierEvaluation eval, weka.core.Instances data, ResultItem item)
Builds the final model and stores it in the result item.weka.classifiers.meta.Vote
getTemplate()
Returns the Vote template to use.String
globalInfo()
Returns a string describing the object.void
setTemplate(weka.classifiers.meta.Vote value)
Sets the Vote template to use.String
templateTipText()
Returns the tip text for this property.-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
setTemplate
public void setTemplate(weka.classifiers.meta.Vote value)
Sets the Vote template to use.- Parameters:
value
- the template
-
getTemplate
public weka.classifiers.meta.Vote getTemplate()
Returns the Vote template to use.- Returns:
- the template
-
templateTipText
public String templateTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
generate
public void generate(AbstractClassifierEvaluation eval, weka.core.Instances data, ResultItem item)
Builds the final model and stores it in the result item.- Specified by:
generate
in classAbstractFinalModelGenerator
- Parameters:
eval
- the evaluation that generated the result itemdata
- the full training dataitem
- the result item
-
-