@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
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
m_classIsNominal
True if the class is set and is nominal
|
protected boolean |
m_classIsSet
True if the class is set in the incoming data
|
protected java.lang.String |
m_classValue
Class label after environment variables have been resolved
|
protected java.lang.String |
m_classValueS
User specified class label, label index or special identifier (e.g
"first"/"last")
|
m_stepIsResourceIntensive, m_stepManager, m_stepName| Constructor and Description |
|---|
ClassValuePicker() |
| Modifier and Type | Method and Description |
|---|---|
protected Instances |
assignClassValue(Instances dataSet)
Set the class value to be considered the 'positive' class
|
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, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stopprotected java.lang.String m_classValueS
protected java.lang.String m_classValue
protected boolean m_classIsSet
protected boolean m_classIsNominal
@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 BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the payload to processWekaException - if a problem occursprotected Instances assignClassValue(Instances dataSet) throws WekaException
dataSet - the dataset to assign the class value forWekaException - 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 name of the connection type to get the output
structure forWekaException - if a problem occurspublic java.lang.String getCustomEditorForStep()
getCustomEditorForStep in interface StepgetCustomEditorForStep in class BaseStep