public class MultilabelHoeffdingTree extends HoeffdingTreeClassifLeaves implements MultiLabelLearner, MultiTargetRegressor
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
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
config
Constructor and Description |
---|
MultilabelHoeffdingTree() |
Modifier and Type | Method and Description |
---|---|
protected void |
deactivateLearningNode(HoeffdingTree.ActiveLearningNode toDeactivate,
HoeffdingTree.SplitNode parent,
int parentBranch) |
Prediction |
getPredictionForInstance(Example<Instance> example) |
Prediction |
getPredictionForInstance(MultiLabelInstance inst) |
static List<Integer> |
getRelevantLabels(Instance x) |
protected HoeffdingTree.LearningNode |
newLearningNode(double[] initialClassObservations) |
protected HoeffdingTree.LearningNode |
newLearningNode(double[] initialClassObservations,
Classifier cl) |
void |
trainOnInstance(Instance inst)
Trains this learner incrementally using the given example.
|
void |
trainOnInstanceImpl(MultiLabelInstance instance) |
attemptToSplit
activateLearningNode, calcByteSize, computeHoeffdingBound, deactivateAllLeaves, enforceTrackerLimit, estimateModelByteSizes, findLearningNodes, findLearningNodes, getModelDescription, getModelMeasurementsImpl, getPurposeString, getVotesForInstance, isRandomizable, measureByteSize, measureTreeDepth, newLearningNode, newNominalClassObserver, newNumericClassObserver, newSplitNode, newSplitNode, resetLearningImpl, trainOnInstanceImpl
contextIsCompatible, copy, correctlyClassifies, getAttributeNameString, getAWTRenderer, getClassLabelString, getClassNameString, getDescription, getModel, getModelContext, getModelMeasurements, getNominalValueString, getPredictionForInstance, getSubClassifiers, getSublearners, getVotesForInstance, modelAttIndexToInstanceAttIndex, modelAttIndexToInstanceAttIndex, prepareForUseImpl, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
getCLICreationString, getOptions, getPreparedClassOption, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy, correctlyClassifies, getPredictionForInstance, getSubClassifiers, getVotesForInstance
getModel, getModelContext, getModelMeasurements, getSublearners, getVotesForInstance, isRandomizable, resetLearning, setModelContext, setRandomSeed, trainingHasStarted, trainingWeightSeenByModel, trainOnInstance
getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
getDescription, measureByteSize
getAWTRenderer
protected 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 Prediction getPredictionForInstance(Example<Instance> example)
getPredictionForInstance
in interface Learner<Example<Instance>>
getPredictionForInstance
in class AbstractClassifier
public Prediction getPredictionForInstance(MultiLabelInstance inst)
getPredictionForInstance
in interface MultiLabelLearner
public void trainOnInstance(Instance inst)
Classifier
trainOnInstance
in interface Classifier
trainOnInstance
in class AbstractClassifier
inst
- the instance to be used for trainingpublic void trainOnInstanceImpl(MultiLabelInstance instance)
trainOnInstanceImpl
in interface MultiLabelLearner
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.