Class MultiClassifiersCombinerModels
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.wekaensemblegenerator.AbstractWekaEnsembleGenerator
-
- adams.flow.transformer.wekaensemblegenerator.MultiClassifiersCombinerModels
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Serializable
public class MultiClassifiersCombinerModels extends AbstractWekaEnsembleGenerator
Generates a MultipleClassifiersCombiner meta-classifier from the incoming pre-built classifier models.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.classifiers.MultipleClassifiersCombinerm_Templatethe 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 MultiClassifiersCombinerModels()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]accepts()Returns the input data the generator processes.protected Stringcheck(Object input)Check method before generating the ensemble.voiddefineOptions()Adds options to the internal list of options.protected ObjectdoGenerate(Object input)Generates the ensemble from the input.Class[]generates()Returns the output data the generator generates.weka.classifiers.MultipleClassifiersCombinergetTemplate()Returns the MultipleClassifiersCombiner template to use.StringglobalInfo()Returns a string describing the object.voidsetTemplate(weka.classifiers.MultipleClassifiersCombiner value)Sets the MultipleClassifiersCombiner template to use.StringtemplateTipText()Returns the tip text for this property.-
Methods inherited from class adams.flow.transformer.wekaensemblegenerator.AbstractWekaEnsembleGenerator
generate
-
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:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setTemplate
public void setTemplate(weka.classifiers.MultipleClassifiersCombiner value)
Sets the MultipleClassifiersCombiner template to use.- Parameters:
value- the template
-
getTemplate
public weka.classifiers.MultipleClassifiersCombiner getTemplate()
Returns the MultipleClassifiersCombiner 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.
-
accepts
public Class[] accepts()
Returns the input data the generator processes.- Specified by:
acceptsin classAbstractWekaEnsembleGenerator- Returns:
- the accepted classes
-
generates
public Class[] generates()
Returns the output data the generator generates.- Specified by:
generatesin classAbstractWekaEnsembleGenerator- Returns:
- the generated classes
-
check
protected String check(Object input)
Check method before generating the ensemble.- Overrides:
checkin classAbstractWekaEnsembleGenerator- Parameters:
input- the input to use- Returns:
- null if checks passed, otherwise error message
-
doGenerate
protected Object doGenerate(Object input)
Generates the ensemble from the input.- Specified by:
doGeneratein classAbstractWekaEnsembleGenerator- Parameters:
input- the input to use- Returns:
- the generated ensemble
-
-