Package weka.knowledgeflow.steps
Class PredictionAppender
java.lang.Object
weka.knowledgeflow.steps.BaseStep
weka.knowledgeflow.steps.PredictionAppender
- All Implemented Interfaces:
Serializable
,BaseStepExtender
,Step
@KFStep(name="PredictionAppender",
category="Evaluation",
toolTipText="Append predictions from classifiers or clusterers to incoming data ",
iconPath="weka/gui/knowledgeflow/icons/PredictionAppender.gif")
public class PredictionAppender
extends BaseStep
Step that can produce data with predictions appended from batch or
incremental classifiers and clusterers
- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get whether to append probability distributions rather than predicted classesGet the incoming connection types that this step acceptsGet a list of outgoing connection types that this step can produce at this timevoid
processIncoming
(Data data) Process incoming datavoid
setAppendProbabilities
(boolean append) Set whether to append probability distributions rather than predicted classesvoid
stepInit()
Initialize the stepMethods inherited from class weka.knowledgeflow.steps.BaseStep
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
-
Constructor Details
-
PredictionAppender
public PredictionAppender()
-
-
Method Details
-
stepInit
Initialize the step- Throws:
WekaException
- if a problem occurs
-
getIncomingConnectionTypes
Get the incoming connection types that this step accepts- Returns:
- a list of acceptable incoming connection types
-
getOutgoingConnectionTypes
Get a list of outgoing connection types that this step can produce at this time- Returns:
- a list of outgoing connection types
-
processIncoming
Process incoming data- Specified by:
processIncoming
in interfaceBaseStepExtender
- Specified by:
processIncoming
in interfaceStep
- Overrides:
processIncoming
in classBaseStep
- Parameters:
data
- the Data object to process- Throws:
WekaException
- if a problem occurs
-
setAppendProbabilities
public void setAppendProbabilities(boolean append) Set whether to append probability distributions rather than predicted classes- Parameters:
append
- true to append probability distributions
-
getAppendProbabilities
@OptionMetadata(displayName="Append probabilities", description="Append probabilities") public boolean getAppendProbabilities()Get whether to append probability distributions rather than predicted classes- Returns:
- true if probability distributions are to be appended
-