Configurable
, java.io.Serializable
, Clusterer
, AWTRenderable
, MOAObject
, OptionHandler
AnyOutCore
public class ClusTree extends AbstractClusterer
Modifier and Type | Field | Description |
---|---|---|
protected boolean |
breadthFirstStrat |
Parameter to determine wich strategy to use
|
FlagOption |
breadthFirstStrategyOption |
|
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
config
Constructor | Description |
---|---|
ClusTree() |
Modifier and Type | Method | Description |
---|---|---|
void |
adjustParameters() |
|
Clustering |
getClustering(long currentTime,
int targetLevel) |
|
Clustering |
getClusteringResult() |
|
protected int |
getDefaultHeight() |
|
int |
getHeight() |
Return the current height of the tree.
|
Clustering |
getMicroClusteringResult() |
|
void |
getModelDescription(java.lang.StringBuilder out,
int indent) |
|
protected Measurement[] |
getModelMeasurementsImpl() |
|
int |
getNumRootSplits() |
Return the number of time the tree has grown in size.
|
double[] |
getVotesForInstance(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(Instance instance) |
contextIsCompatible, copy, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getPurposeString, getSubClusterers, keepClassLabel, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
copy, measureByteSize, measureByteSize, toString
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
measureByteSize
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
public IntOption horizonOption
public IntOption maxHeightOption
public FlagOption breadthFirstStrategyOption
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(java.lang.StringBuilder out, int indent)
getModelDescription
in class AbstractClusterer
public double[] getVotesForInstance(Instance inst)
public boolean implementsMicroClusterer()
implementsMicroClusterer
in interface Clusterer
implementsMicroClusterer
in class AbstractClusterer
public void trainOnInstanceImpl(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.ClusKernel
,
Budget
public int getNumRootSplits()
public int getHeight()
maxHeight
.maxHeight
public Clustering getMicroClusteringResult()
getMicroClusteringResult
in interface Clusterer
getMicroClusteringResult
in class AbstractClusterer
public Clustering getClusteringResult()
public Clustering getClustering(long currentTime, int targetLevel)
currentTime
- The current timepublic void adjustParameters()
adjustParameters
in class AbstractClusterer
Copyright © 2020 University of Waikato, Hamilton, NZ. All Rights Reserved.