public class MultilabelHoeffdingTree extends HoeffdingTreeClassifLeaves
Modifier and Type | Class and Description |
---|---|
static class |
MultilabelHoeffdingTree.MultilabelInactiveLearningNode |
class |
MultilabelHoeffdingTree.MultilabelLearningNodeClassifier |
HoeffdingTreeClassifLeaves.LearningNodeClassifier
HoeffdingTree.ActiveLearningNode, HoeffdingTree.FoundNode, HoeffdingTree.InactiveLearningNode, HoeffdingTree.LearningNode, HoeffdingTree.LearningNodeNB, HoeffdingTree.LearningNodeNBAdaptive, HoeffdingTree.Node, HoeffdingTree.SplitNode
Modifier and Type | Field and Description |
---|---|
protected Converter |
converter |
int |
m_L |
learnerOption
activeLeafByteSizeEstimate, activeLeafNodeCount, binarySplitsOption, byteSizeEstimateOverheadFraction, decisionNodeCount, gracePeriodOption, growthAllowed, inactiveLeafByteSizeEstimate, inactiveLeafNodeCount, leafpredictionOption, maxByteSizeOption, memoryEstimatePeriodOption, nbThresholdOption, nominalEstimatorOption, noPrePruneOption, numericEstimatorOption, removePoorAttsOption, splitConfidenceOption, splitCriterionOption, stopMemManagementOption, tieThresholdOption, treeRoot
classifierRandom, modelContext, randomSeed, randomSeedOption, trainingWeightSeenByModel
classOptionNamesToPreparedObjects, options
Constructor and Description |
---|
MultilabelHoeffdingTree() |
Modifier and Type | Method and Description |
---|---|
protected void |
deactivateLearningNode(HoeffdingTree.ActiveLearningNode toDeactivate,
HoeffdingTree.SplitNode parent,
int parentBranch) |
double[] |
getVotesForInstance(weka.core.Instance inst)
Predicts the class memberships for a given instance.
|
protected HoeffdingTree.LearningNode |
newLearningNode(double[] initialClassObservations) |
protected HoeffdingTree.LearningNode |
newLearningNode(double[] initialClassObservations,
Classifier cl) |
void |
setModelContext(InstancesHeader raw_header)
Sets the reference to the header of the data stream.
|
attemptToSplit
activateLearningNode, calcByteSize, computeHoeffdingBound, deactivateAllLeaves, enforceTrackerLimit, estimateModelByteSizes, findLearningNodes, findLearningNodes, getModelDescription, getModelMeasurementsImpl, getPurposeString, isRandomizable, measureByteSize, measureTreeDepth, newLearningNode, newNominalClassObserver, newNumericClassObserver, newSplitNode, newSplitNode, resetLearningImpl, trainOnInstanceImpl
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModelContext, getModelMeasurements, getNominalValueString, getSubClassifiers, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
discoverOptionsViaReflection, getCLICreationString, getOptions, getPreparedClassOption, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCLICreationString, getOptions, prepareForUse, prepareForUse
public int m_L
protected Converter converter
public void setModelContext(InstancesHeader raw_header)
Classifier
Instances
.
This header is needed to know the number of classes and attributessetModelContext
in interface Classifier
setModelContext
in class AbstractClassifier
raw_header
- the reference to the data stream headerprotected HoeffdingTree.LearningNode newLearningNode(double[] initialClassObservations)
newLearningNode
in class HoeffdingTreeClassifLeaves
protected HoeffdingTree.LearningNode newLearningNode(double[] initialClassObservations, Classifier cl)
newLearningNode
in class HoeffdingTreeClassifLeaves
protected void deactivateLearningNode(HoeffdingTree.ActiveLearningNode toDeactivate, HoeffdingTree.SplitNode parent, int parentBranch)
deactivateLearningNode
in class HoeffdingTree
public double[] getVotesForInstance(weka.core.Instance inst)
Classifier
getVotesForInstance
in interface Classifier
getVotesForInstance
in class HoeffdingTree
inst
- the instance to be classifiedCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.