@KFStep(name="SerializedModelSaver", category="DataSinks", toolTipText="A step that saves models to the file system", iconPath="weka/gui/knowledgeflow/icons/SerializedModelSaver.gif") public class SerializedModelSaver extends BaseStep
| Constructor and Description |
|---|
SerializedModelSaver() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFilenamePrefix() |
boolean |
getIncludeRelationNameInFilename() |
List<String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
int |
getIncrementalSaveSchedule() |
List<String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
File |
getOutputDirectory() |
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
setFilenamePrefix(String filenamePrefix) |
void |
setIncludeRelationNameInFilename(boolean includeRelationName) |
void |
setIncrementalSaveSchedule(int schedule) |
void |
setOutputDirectory(File directory) |
void |
stepInit()
Initialize the step.
|
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, start, stop@FilePropertyMetadata(fileChooserDialogType=1, directoriesOnly=true) @OptionMetadata(displayName="Output directory", description="The directory to save models to", displayOrder=0) public void setOutputDirectory(File directory)
public File getOutputDirectory()
@OptionMetadata(displayName="Filename prefix", description="A prefix to prepend to the filename", displayOrder=1) public void setFilenamePrefix(String filenamePrefix)
public String getFilenamePrefix()
@OptionMetadata(displayName="Incremental save schedule", description="How frequently to save incremental classifiers (<= 0 indicates that the save will happen just once, at the end of the stream", displayOrder=4) public void setIncrementalSaveSchedule(int schedule)
public int getIncrementalSaveSchedule()
@OptionMetadata(displayName="Include relation name in file name", description="Whether to include the relation name of the data as part of the file name", displayOrder=2) public void setIncludeRelationNameInFilename(boolean includeRelationName)
public boolean getIncludeRelationNameInFilename()
public List<String> getIncomingConnectionTypes()
Steppublic List<String> getOutgoingConnectionTypes()
Steppublic void stepInit()
Steppublic void processIncoming(Data data) throws WekaException
BaseStepprocessIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the payload to processWekaException - if a problem occursCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.