adams.flow.sink
Class WekaModelWriter
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.flow.core.AbstractActor
adams.flow.sink.AbstractSink
adams.flow.sink.AbstractFileWriter
adams.flow.sink.AbstractWekaModelWriter
adams.flow.sink.WekaModelWriter
- All Implemented Interfaces:
- AdditionalInformationHandler, CleanUpHandler, Debuggable, DebugOutputHandler, Destroyable, OptionHandler, QuickInfoSupporter, ShallowCopySupporter<AbstractActor>, SizeOfHandler, Stoppable, VariableChangeListener, ErrorHandler, InputConsumer, Serializable, Comparable
public class WekaModelWriter
- extends AbstractWekaModelWriter
Actor for saving a model (classifier or clusterer) alongside an optional header (i.e., weka.core.Instances object) as file.
Input/output:
- accepts:
adams.flow.container.ModelContainer
Valid options are:
-D (property: debug)
If set to true, scheme may output additional info to the console.
-name <java.lang.String> (property: name)
The name of the actor.
default: ModelWriter
-annotation <adams.core.base.BaseText> (property: annotations)
The annotations to attach to this actor.
default:
-skip (property: skip)
If set to true, transformation is skipped and the input token is just forwarded
as it is.
-output <adams.core.io.PlaceholderFile> (property: outputFile)
The filename to save the model (and optional header) in.
default: .
- Version:
- $Revision: 4584 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Fields inherited from class adams.flow.core.AbstractActor |
FILE_EXTENSION, FILE_EXTENSION_GZ, m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_FullName, m_Headless, m_Name, m_Parent, m_Root, m_Self, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated |
| Methods inherited from class adams.flow.core.AbstractActor |
annotationsTipText, canInspectOptions, canPerformSetUpCheck, cleanUp, compareTo, debug, destroy, equals, execute, findVariables, findVariables, findVariables, forceVariables, forCommandLine, forName, getAdditionalInformation, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowActors, getFullName, getName, getNextSibling, getParent, getPreviousSibling, getRoot, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, initialize, isBackedUp, isExecuted, isFinished, isHeadless, isStopped, nameTipText, performSetUpChecks, postExecute, preExecute, pruneBackup, pruneBackup, reset, setAnnotations, setErrorHandler, setHeadless, setName, setParent, setSkip, setStopFlowOnError, setVariables, shallowCopy, shallowCopy, sizeOf, skipTipText, stopExecution, stopExecution, stopFlowOnErrorTipText, updateDetectedVariables, updatePrefix, updateVariables, variableChanged |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debugLevelTipText, finishInit, getDebugLevel, getOptionManager, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
WekaModelWriter
public WekaModelWriter()
globalInfo
public String globalInfo()
- Returns a string describing the object.
- Specified by:
globalInfo in class AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
getAdditionalAcceptedClasses
protected Class[] getAdditionalAcceptedClasses()
- Returns additional classes that are accepted as input
(WEKA classifiers and clusterers).
- Overrides:
getAdditionalAcceptedClasses in class AbstractWekaModelWriter
- Returns:
- the additional classes
Copyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.