@KFIgnore @GPCIgnore public class PreconstructedKMeans extends weka.clusterers.SimpleKMeans implements Preconstructed
Constructor and Description |
---|
PreconstructedKMeans() |
Modifier and Type | Method and Description |
---|---|
void |
buildClusterer(weka.core.Instances data) |
int |
clusterProcessedInstance(weka.filters.Filter preprocess,
weka.core.Instance inst,
boolean updateDistanceFunction,
long[] instanceCanopies) |
double[] |
getErrorsForClusters() |
boolean |
isConstructed()
Returns true if this Preconstructed instance is initialized and ready to be
used
|
void |
resetPreconstructed()
Reset.
|
void |
setClusterCentroids(weka.core.Instances centers) |
void |
setClusterStats(java.util.List<weka.core.Instances> summaryStatsForCentroids) |
void |
setFinalNumberOfIterations(int numIts) |
void |
setInitialStartingPoints(weka.core.Instances starting) |
void |
setWithinClustersSumOfErrors(double[] clusterErrors) |
canopyMaxNumCanopiesToHoldInMemoryTipText, canopyMinimumCanopyDensityTipText, canopyPeriodicPruningRateTipText, canopyT1TipText, canopyT2TipText, clusterInstance, displayStdDevsTipText, distanceFunctionTipText, dontReplaceMissingValuesTipText, fastDistanceCalcTipText, getAssignments, getCanopyMaxNumCanopiesToHoldInMemory, getCanopyMinimumCanopyDensity, getCanopyPeriodicPruningRate, getCanopyT1, getCanopyT2, getCapabilities, getClusterCentroids, getClusterNominalCounts, getClusterSizes, getClusterStandardDevs, getDisplayStdDevs, getDistanceFunction, getDontReplaceMissingValues, getFastDistanceCalc, getInitializationMethod, getMaxIterations, getNumClusters, getNumExecutionSlots, getOptions, getPreserveInstancesOrder, getReduceNumberOfDistanceCalcsViaCanopies, getRevision, getSquaredError, getTechnicalInformation, globalInfo, initializationMethodTipText, listOptions, main, maxIterationsTipText, numberOfClusters, numClustersTipText, numExecutionSlotsTipText, preserveInstancesOrderTipText, reduceNumberOfDistanceCalcsViaCanopiesTipText, setCanopyMaxNumCanopiesToHoldInMemory, setCanopyMinimumCanopyDensity, setCanopyPeriodicPruningRate, setCanopyT1, setCanopyT2, setDisplayStdDevs, setDistanceFunction, setDontReplaceMissingValues, setFastDistanceCalc, setInitializationMethod, setMaxIterations, setNumClusters, setNumExecutionSlots, setOptions, setPreserveInstancesOrder, setReduceNumberOfDistanceCalcsViaCanopies, toString
debugTipText, distributionForInstance, doNotCheckCapabilitiesTipText, forName, getDebug, getDoNotCheckCapabilities, makeCopies, makeCopy, postExecution, preExecution, run, runClusterer, setDebug, setDoNotCheckCapabilities
public void setClusterCentroids(weka.core.Instances centers)
public void setInitialStartingPoints(weka.core.Instances starting)
public void setFinalNumberOfIterations(int numIts)
public void setWithinClustersSumOfErrors(double[] clusterErrors)
public void setClusterStats(java.util.List<weka.core.Instances> summaryStatsForCentroids) throws java.lang.Exception
java.lang.Exception
public int clusterProcessedInstance(weka.filters.Filter preprocess, weka.core.Instance inst, boolean updateDistanceFunction, long[] instanceCanopies) throws java.lang.Exception
java.lang.Exception
public double[] getErrorsForClusters()
public void buildClusterer(weka.core.Instances data) throws java.lang.Exception
buildClusterer
in interface weka.clusterers.Clusterer
buildClusterer
in class weka.clusterers.SimpleKMeans
java.lang.Exception
public boolean isConstructed()
Preconstructed
isConstructed
in interface Preconstructed
public void resetPreconstructed()
Preconstructed
resetPreconstructed
in interface Preconstructed