Package adams.flow.core
Class WekaClassifierModelLoader
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.core.AbstractModelLoader<weka.classifiers.Classifier>
-
- adams.flow.core.WekaClassifierModelLoader
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.io.ModelFileHandler
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,adams.flow.core.FlowContextHandler
,Serializable
public class WekaClassifierModelLoader extends adams.flow.core.AbstractModelLoader<weka.classifiers.Classifier>
Manages classifier models.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WekaClassifierModelLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
deserializeFile(adams.core.MessageCollection errors)
Deserializes the model file.protected weka.classifiers.Classifier
getModelFromContainer(adams.flow.container.AbstractContainer cont, adams.core.MessageCollection errors)
Retrieves the model from the container.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.core.AbstractModelLoader
automaticOrderInfo, defineOptions, getFlowContext, getModel, getModelActor, getModelFile, getModelLoadingType, getModelStorage, initialize, loadAutomatically, loadFromCallableActor, loadFromFile, loadFromStorage, modelActorTipText, modelFileTipText, modelLoadingTypeTipText, modelStorageTipText, reset, setFlowContext, setModelActor, setModelFile, setModelLoadingType, setModelStorage, unhandledContainer, unwrapModel
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
deserializeFile
protected Object deserializeFile(adams.core.MessageCollection errors)
Deserializes the model file.- Overrides:
deserializeFile
in classadams.flow.core.AbstractModelLoader<weka.classifiers.Classifier>
- Parameters:
errors
- for collecting errors- Returns:
- the object read from the file, null if failed
-
getModelFromContainer
protected weka.classifiers.Classifier getModelFromContainer(adams.flow.container.AbstractContainer cont, adams.core.MessageCollection errors)
Retrieves the model from the container.- Specified by:
getModelFromContainer
in classadams.flow.core.AbstractModelLoader<weka.classifiers.Classifier>
- Parameters:
cont
- the container to get the model fromerrors
- for collecting errors- Returns:
- the model, null if not in container
-
-