@KFStep(name="ClassValuePicker", category="Evaluation", toolTipText="Designate which class value is considered the \"positive\" class value (useful for ROC analysis)", iconPath="weka/gui/knowledgeflow/icons/ClassValuePicker.gif") public class ClassValuePicker extends BaseStep
Constructor and Description |
---|
ClassValuePicker() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassValue()
Gets the class value considered to be the "positive" class value.
|
java.lang.String |
getCustomEditorForStep()
Return the fully qualified name of a custom editor component (JComponent)
to use for editing the properties of the step.
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
Instances |
outputStructureForConnectionType(java.lang.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 |
setClassValue(java.lang.String value)
Set the class value considered to be the "positive" class value.
|
void |
stepInit()
Initialize the step.
|
environmentSubstitute, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
@OptionMetadata(displayName="Class value", description="The class value to consider as the \'positive\' class", displayOrder=1) public void setClassValue(java.lang.String value)
value
- the class value index to usepublic java.lang.String getClassValue()
public void stepInit() throws WekaException
WekaException
- if a problem occurs during initializationpublic void processIncoming(Data data) throws WekaException
processIncoming
in interface BaseStepExtender
processIncoming
in interface Step
processIncoming
in class BaseStep
data
- the payload to processWekaException
- 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 Step
outputStructureForConnectionType
in class BaseStep
connectionName
- the name of the connection type to get the output
structure forWekaException
- if a problem occurspublic java.lang.String getCustomEditorForStep()
getCustomEditorForStep
in interface Step
getCustomEditorForStep
in class BaseStep