public class ClusTree extends AbstractClusterer
Modifier and Type | Field and Description |
---|---|
protected boolean |
breadthFirstStrat
Parameter to determine wich strategy to use
|
IntOption |
horizonOption |
protected int |
maxHeight
The maximal height of the tree.
|
IntOption |
maxHeightOption |
protected double |
negLambda
Parameter for the weighting function use to weight the entries.
|
protected Node |
root
The root node of the tree.
|
clustererRandom, clustering, evaluateMicroClusteringOption, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
ClusTree() |
Modifier and Type | Method and Description |
---|---|
Clustering |
getClustering(long currentTime,
int targetLevel) |
Clustering |
getClusteringResult() |
protected int |
getDefaultHeight() |
int |
getHeight()
Return the current height of the tree.
|
Clustering |
getMicroClusteringResult() |
void |
getModelDescription(StringBuilder out,
int indent) |
protected Measurement[] |
getModelMeasurementsImpl() |
int |
getNumRootSplits()
Return the number of time the tree has grown in size.
|
double[] |
getVotesForInstance(weka.core.Instance inst) |
boolean |
implementsMicroClusterer() |
void |
insert(ClusKernel newPoint,
Budget budget,
long timestamp)
Insert a new point in the
Tree . |
boolean |
isRandomizable() |
void |
resetLearningImpl() |
void |
trainOnInstanceImpl(weka.core.Instance instance) |
contextIsCompatible, copy, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getPurposeString, getSubClusterers, keepClassLabel, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, 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 horizonOption
public IntOption maxHeightOption
protected Node root
protected double negLambda
protected int maxHeight
protected boolean breadthFirstStrat
protected int getDefaultHeight()
public void resetLearningImpl()
resetLearningImpl
in class AbstractClusterer
protected Measurement[] getModelMeasurementsImpl()
getModelMeasurementsImpl
in class AbstractClusterer
public boolean isRandomizable()
public void getModelDescription(StringBuilder out, int indent)
getModelDescription
in class AbstractClusterer
public double[] getVotesForInstance(weka.core.Instance inst)
public boolean implementsMicroClusterer()
implementsMicroClusterer
in interface Clusterer
implementsMicroClusterer
in class AbstractClusterer
public void trainOnInstanceImpl(weka.core.Instance instance)
trainOnInstanceImpl
in class AbstractClusterer
public void insert(ClusKernel newPoint, Budget budget, long timestamp)
Tree
. The point should be
represented as a cluster with a single data point(i.e. N = 1). A
Budget
class is also given, which is informed of the number
of operation the tree does, and informs the tree when it does not have
time left and should stop the insertion.newPoint
- The point to be inserted.budget
- The budget and statistics recollector for the insertion.timestamp
- The moment at which this point is inserted.Kernel
,
Budget
public int getNumRootSplits()
public int getHeight()
maxHeight
.maxHeight
public Clustering getMicroClusteringResult()
getMicroClusteringResult
in interface Clusterer
getMicroClusteringResult
in class AbstractClusterer
currentTime
- The current timepublic Clustering getClusteringResult()
public Clustering getClustering(long currentTime, int targetLevel)
currentTime
- The current timeCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.