@KFStep(name="TrainTestSplitMaker", category="Evaluation", toolTipText="A step that randomly splits incoming data into a training and test set", iconPath="weka/gui/knowledgeflow/icons/TrainTestSplitMaker.gif") public class TrainTestSplitMaker extends BaseStep
| Constructor and Description |
|---|
TrainTestSplitMaker() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
List<String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
String |
getSeed()
Get the random seed to use
|
String |
getTrainPercent()
Get the training percentage
|
Instances |
outputStructureForConnectionType(String connectionName)
If possible, get the output structure for the named connection type as a
header-only set of instances.
|
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
setSeed(String seed)
Set the random seed to use
|
void |
setTrainPercent(String percent)
Set the training percentage
|
void |
stepInit()
Initialize the step
|
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, setName, setStepIsResourceIntensive, setStepManager, start, stop@OptionMetadata(displayName="Training percentage", description="The percentage of data to go into the training set", displayOrder=1) public void setTrainPercent(String percent)
percent - the training percentagepublic String getTrainPercent()
@OptionMetadata(displayName="Random seed", description="The random seed", displayOrder=2) public void setSeed(String seed)
seed - the random seed to usepublic String getSeed()
public void stepInit()
throws WekaException
WekaException - if a problem occurspublic void processIncoming(Data data) throws WekaException
processIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the data to processWekaException - if a problem occurspublic List<String> getIncomingConnectionTypes()
public List<String> getOutgoingConnectionTypes()
public Instances outputStructureForConnectionType(String connectionName) throws WekaException
outputStructureForConnectionType in interface StepoutputStructureForConnectionType in class BaseStepconnectionName - the name of the connection type to get the output
structure forWekaException - if a problem occursCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.