@KFStep(name="Associator", category="Associations", toolTipText="Weka associator wrapper", iconPath="") public class Associator extends WekaAlgorithmWrapper
| Modifier and Type | Field and Description |
|---|---|
protected Associator |
m_associatorTemplate
Template for the associator in use
|
m_defaultIconPath, m_defaultPackageIconPath, m_iconPath, m_wrappedAlgorithmm_stepIsResourceIntensive, m_stepManager, m_stepName| Constructor and Description |
|---|
Associator() |
| Modifier and Type | Method and Description |
|---|---|
Associator |
getAssociator()
Get the associator to use.
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept at this
time
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connections that this step can produce at this time
|
java.lang.Class |
getWrappedAlgorithmClass()
Get the class of the algorithm being wrapped
|
protected void |
outputAssociatorData(Associator associator,
java.lang.Integer setNum,
java.lang.Integer maxSetNum)
Outputs the trained associator to downstream steps that are interested
|
protected void |
outputGraphData(Associator associator,
Instances insts,
java.lang.Integer setNum) |
Instances |
outputStructureForConnectionType(java.lang.String connectionName)
If possible, get the output structure for the named connection type as a
header-only set of instances.
|
protected void |
outputTextData(Associator associator,
Instances train,
java.lang.Integer setNum)
Outputs textual representation of associator to downstream steps
|
void |
processIncoming(Data data)
Processes incoming data
|
void |
setAssociator(Associator associator)
Set the associator to use.
|
void |
setWrappedAlgorithm(java.lang.Object algo)
Set the wrapped algorithm
|
void |
stepInit()
Initializes the step
|
getDefaultIconPath, getDefaultPackageLevelIconPath, getIconPath, getWrappedAlgorithm, globalInfoenvironmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, isResourceIntensive, isStopRequested, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stopprotected Associator m_associatorTemplate
public java.lang.Class getWrappedAlgorithmClass()
getWrappedAlgorithmClass in class WekaAlgorithmWrapperpublic void setWrappedAlgorithm(java.lang.Object algo)
setWrappedAlgorithm in class WekaAlgorithmWrapperalgo - the wrapped algorithm@ProgrammaticProperty public void setAssociator(Associator associator)
associator - the associator to usepublic Associator getAssociator()
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 outputAssociatorData(Associator associator, java.lang.Integer setNum, java.lang.Integer maxSetNum) throws WekaException
associator - the associator to outputsetNum - the set number of the data used to train the associatormaxSetNum - the maximum set numberWekaException - if a problem occursprotected void outputTextData(Associator associator, Instances train, java.lang.Integer setNum) throws WekaException
associator - the associator to output the textual form fortrain - the training data used to train the associatorsetNum - the set number of the dataWekaException - if a problem occursprotected void outputGraphData(Associator associator, Instances insts, java.lang.Integer setNum) throws WekaException
WekaExceptionpublic 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 connection type to generate output structure forWekaException - if a problem occurs