@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
|
List<String> |
getIncomingConnectionTypes()
Get a list of connection types that could be made to this Step at this
point in time
|
File |
getLoadClustererFileName()
Get the name of the clusterer to load at execution time.
|
List<String> |
getOutgoingConnectionTypes()
Get a list of outgoing connections that could be made from this step at
this point in time
|
Class |
getWrappedAlgorithmClass()
Get the class of the wrapped algorithm
|
void |
processIncoming(Data data)
Process an incoming data object
|
Clusterer |
processPrimary(Integer setNum,
Integer maxSetNum,
Data data,
PairedDataHelper<Clusterer> helper)
Process a training split (primary data handled by the PairedDataHelper)
|
void |
processSecondary(Integer setNum,
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(File filename)
Set the name of the clusterer to load at execution time.
|
void |
setWrappedAlgorithm(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, setName, setStepIsResourceIntensive, setStepManager, start, stoppublic Clusterer getClusterer()
@ProgrammaticProperty public void setClusterer(Clusterer clusterer)
clusterer - the clusterer to trainpublic 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(File filename)
filename - the name of the file to load the model frompublic Class getWrappedAlgorithmClass()
getWrappedAlgorithmClass in class WekaAlgorithmWrapperpublic void setWrappedAlgorithm(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 List<String> getIncomingConnectionTypes()
getIncomingConnectionTypes in interface BaseStepExtendergetIncomingConnectionTypes in interface Steppublic List<String> getOutgoingConnectionTypes()
getOutgoingConnectionTypes in interface BaseStepExtendergetOutgoingConnectionTypes in interface Steppublic Clusterer processPrimary(Integer setNum, 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(Integer setNum, 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 occursCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.