public class BICO extends AbstractClusterer
Modifier and Type | Field and Description |
---|---|
protected int |
maxNumClusterFeatures |
IntOption |
maxNumClusterFeaturesOption |
protected int |
numClusters |
IntOption |
numClustersOption |
protected int |
numDimensions |
IntOption |
numDimensionsOption |
protected int |
numProjections |
IntOption |
numProjectionsOption |
clustererRandom, clustering, evaluateMicroClusteringOption, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
config
Constructor and Description |
---|
BICO() |
Modifier and Type | Method and Description |
---|---|
protected void |
bicoCFUpdate(ClusteringTreeNode x)
Inserts a ClusteringTreeNode into the ClusteringFeature tree.
|
protected void |
bicoUpdate(double[] x)
Inserts a new point into the ClusteringFeature tree.
|
protected double |
calcR(int level)
Calculates the threshold at a specific level in the ClusteringFeature
tree.
|
protected double |
calcRSquared(int level)
Calculates the squared threshold at a specific level in the
ClusteringFeature tree.
|
Clustering |
getClusteringResult() |
Clustering |
getMicroClusteringResult() |
int |
getMicroClusteringSize()
Returns the current size of the micro clustering.
|
void |
getModelDescription(StringBuilder out,
int indent) |
protected Measurement[] |
getModelMeasurementsImpl() |
double[] |
getVotesForInstance(Instance inst) |
boolean |
implementsMicroClusterer() |
boolean |
isRandomizable() |
void |
printMicroClusteringResult(Writer stream)
Writes all micro cluster to a given stream.
|
protected void |
rebuild()
If the number of ClusteringTreeNodes exceeds the maximum bound, the
global threshold T will be doubled and the tree will be rebuild with the
new threshold.
|
void |
resetLearningImpl() |
void |
trainOnInstanceImpl(Instance inst) |
contextIsCompatible, copy, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getPurposeString, getSubClusterers, keepClassLabel, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
measureByteSize
public IntOption numClustersOption
public IntOption numDimensionsOption
public IntOption maxNumClusterFeaturesOption
public IntOption numProjectionsOption
protected int numClusters
protected int numDimensions
protected int maxNumClusterFeatures
protected int numProjections
public boolean isRandomizable()
public boolean implementsMicroClusterer()
implementsMicroClusterer
in interface Clusterer
implementsMicroClusterer
in class AbstractClusterer
public Clustering getMicroClusteringResult()
getMicroClusteringResult
in interface Clusterer
getMicroClusteringResult
in class AbstractClusterer
public void printMicroClusteringResult(Writer stream) throws IOException
stream
- the streamIOException
- If an I/O error occurspublic int getMicroClusteringSize()
public double[] getVotesForInstance(Instance inst)
public Clustering getClusteringResult()
public void resetLearningImpl()
resetLearningImpl
in class AbstractClusterer
public void trainOnInstanceImpl(Instance inst)
trainOnInstanceImpl
in class AbstractClusterer
protected void bicoUpdate(double[] x)
x
- the pointprotected void rebuild()
protected void bicoCFUpdate(ClusteringTreeNode x)
x
- the ClusteringTreeNodeprotected double calcRSquared(int level)
level
- level in the treeprotected double calcR(int level)
level
- level in the treeprotected Measurement[] getModelMeasurementsImpl()
getModelMeasurementsImpl
in class AbstractClusterer
public void getModelDescription(StringBuilder out, int indent)
getModelDescription
in class AbstractClusterer
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.