@KFStep(name="Clusterer", category="Clusterers", toolTipText="Weka clusterer wrapper", iconPath="", resourceIntensive=true) public class Clusterer extends WekaAlgorithmWrapper implements PairedDataHelper.PairedProcessor<Clusterer>
| Constructor and Description |
|---|
Clusterer() |
| Modifier and Type | Method and Description |
|---|---|
Clusterer |
getClusterer()
Get the clusterer to train
|
java.util.List<java.lang.String> |
getIncomingConnectionTypes()
Get a list of connection types that could be made to this Step at this
point in time
|
java.io.File |
getLoadClustererFileName()
Get the name of the clusterer to load at execution time.
|
java.util.List<java.lang.String> |
getOutgoingConnectionTypes()
Get a list of outgoing connections that could be made from this step at
this point in time
|
java.lang.Class |
getWrappedAlgorithmClass()
Get the class of the wrapped algorithm
|
void |
processIncoming(Data data)
Process an incoming data object
|
Clusterer |
processPrimary(java.lang.Integer setNum,
java.lang.Integer maxSetNum,
Data data,
PairedDataHelper<Clusterer> helper)
Process a training split (primary data handled by the PairedDataHelper)
|
void |
processSecondary(java.lang.Integer setNum,
java.lang.Integer maxSetNum,
Data data,
PairedDataHelper<Clusterer> helper)
Process a test split/fold (secondary data handled by PairedDataHelper)
|
void |
setClusterer(Clusterer clusterer)
Set the clusterer to train
|
void |
setLoadClustererFileName(java.io.File filename)
Set the name of the clusterer to load at execution time.
|
void |
setWrappedAlgorithm(java.lang.Object algo)
Set the wrapped algorithm
|
void |
stepInit()
Initialize the step
|
getDefaultIconPath, getDefaultPackageLevelIconPath, getIconPath, getWrappedAlgorithm, globalInfoenvironmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stoppublic Clusterer getClusterer()
@ProgrammaticProperty public void setClusterer(Clusterer clusterer)
clusterer - the clusterer to trainpublic java.io.File getLoadClustererFileName()
@OptionMetadata(displayName="Clusterer model to load", description="Optional path to a clusterer to load at execution time (only applies when using testSet connections)") @FilePropertyMetadata(fileChooserDialogType=0, directoriesOnly=false) public void setLoadClustererFileName(java.io.File filename)
filename - the name of the file to load the model frompublic java.lang.Class getWrappedAlgorithmClass()
getWrappedAlgorithmClass in class WekaAlgorithmWrapperpublic void setWrappedAlgorithm(java.lang.Object algo)
setWrappedAlgorithm in class WekaAlgorithmWrapperalgo - the algorithm to wrappublic void stepInit()
throws WekaException
stepInit in interface BaseStepExtenderstepInit in interface StepWekaException - 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 occurspublic java.util.List<java.lang.String> getIncomingConnectionTypes()
getIncomingConnectionTypes in interface BaseStepExtendergetIncomingConnectionTypes in interface Steppublic java.util.List<java.lang.String> getOutgoingConnectionTypes()
getOutgoingConnectionTypes in interface BaseStepExtendergetOutgoingConnectionTypes in interface Steppublic Clusterer processPrimary(java.lang.Integer setNum, java.lang.Integer maxSetNum, Data data, PairedDataHelper<Clusterer> helper) throws WekaException
processPrimary in interface PairedDataHelper.PairedProcessor<Clusterer>setNum - the number of this split/foldmaxSetNum - the maximum number of splits/folds in the groupdata - the actual split/fold datahelper - the PairedDataHelper managing the paired dataWekaException - if a problem occurspublic void processSecondary(java.lang.Integer setNum,
java.lang.Integer maxSetNum,
Data data,
PairedDataHelper<Clusterer> helper)
throws WekaException
processSecondary in interface PairedDataHelper.PairedProcessor<Clusterer>setNum - the set number of this split/foldmaxSetNum - the maximum number of splits/folds in the groupdata - the actual split/fold datahelper - the PairedDataHelper managing the paried dataWekaException - if a problem occurs