@KFStep(name="ClassAssigner", category="Evaluation", toolTipText="Designate which column is to be considered the class column in incoming data.", iconPath="weka/gui/knowledgeflow/icons/ClassAssigner.gif") public class ClassAssigner extends BaseStep
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_classAssigned
True if the class has already been assigned
|
protected java.lang.String |
m_classCol
Holds user-specified class column/index
|
protected java.lang.String |
m_classColumnS
Holds resoved class column/index
|
protected boolean |
m_isInstanceStream
True if processing an instance stream
|
protected int |
m_streamCount
Counter used for streams
|
m_stepIsResourceIntensive, m_stepManager, m_stepName| Constructor and Description |
|---|
ClassAssigner() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assignClass(Instances dataSet)
Assign the class to a set of instances
|
java.lang.String |
getClassColumn()
Get the class column to use
|
java.lang.String |
getCustomEditorForStep()
Get the custom editor for this step
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get the incoming connections that this step can accept at this time
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get the outgoing connection types that this step can produce at this time
|
Instances |
outputStructureForConnectionType(java.lang.String connectionName)
Return the structure of data output by this step for a given incoming
connection type
|
void |
processIncoming(Data data)
Process incoming data
|
void |
setClassColumn(java.lang.String col)
Set the class column to use
|
void |
stepInit()
Initialize the step prior to execution
|
environmentSubstitute, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stopprotected java.lang.String m_classColumnS
protected java.lang.String m_classCol
protected boolean m_classAssigned
protected boolean m_isInstanceStream
protected int m_streamCount
public void setClassColumn(java.lang.String col)
col - the class column to usepublic java.lang.String getClassColumn()
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 occursprotected void assignClass(Instances dataSet) throws WekaException
dataSet - the instances to assign the class toWekaException - if a problem occurspublic java.util.List<java.lang.String> getIncomingConnectionTypes()
public java.util.List<java.lang.String> getOutgoingConnectionTypes()
public Instances outputStructureForConnectionType(java.lang.String connectionName) throws WekaException
outputStructureForConnectionType in interface StepoutputStructureForConnectionType in class BaseStepconnectionName - the incoming connection typeWekaException - if a problem occurspublic java.lang.String getCustomEditorForStep()
getCustomEditorForStep in interface StepgetCustomEditorForStep in class BaseStep