Class AccessibleRandomTree
- java.lang.Object
-
- weka.classifiers.AbstractClassifier
-
- weka.classifiers.trees.RandomTree
-
- ai.libs.jaicore.ml.weka.classification.singlelabel.timeseries.learner.trees.AccessibleRandomTree
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,weka.classifiers.Classifier,weka.core.BatchPredictor,weka.core.CapabilitiesHandler,weka.core.CapabilitiesIgnorer,weka.core.CommandlineRunnable,weka.core.Drawable,weka.core.OptionHandler,weka.core.PartitionGenerator,weka.core.Randomizable,weka.core.RevisionHandler,weka.core.WeightedInstancesHandler
public class AccessibleRandomTree extends weka.classifiers.trees.RandomTreeRandom Tree extension providing leaf node information of the constructed tree.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classAccessibleRandomTree.AccessibleTree
-
Field Summary
Fields Modifier and Type Field Description protected AccessibleRandomTree.AccessibleTreetreeInternal tree object providing access to leaf node information.-
Fields inherited from class weka.classifiers.trees.RandomTree
m_AllowUnclassifiedInstances, m_BreakTiesRandomly, m_computeImpurityDecreases, m_impurityDecreasees, m_Info, m_KValue, m_MaxDepth, m_MinNum, m_MinVarianceProp, m_NumFolds, m_randomSeed, m_Tree, m_zeroR
-
-
Constructor Summary
Constructors Constructor Description AccessibleRandomTree()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildClassifier(weka.core.Instances data)double[]distributionForInstance(weka.core.Instance instance)intgetLastNode()AccessibleRandomTree.AccessibleTreegetMTree()intgetNosLeafNodes()protected static doublesingleVariance(double s, double sS, double weight)Computes the variance for a single set-
Methods inherited from class weka.classifiers.trees.RandomTree
allowUnclassifiedInstancesTipText, breakTiesRandomlyTipText, generatePartition, getAllowUnclassifiedInstances, getBreakTiesRandomly, getCapabilities, getComputeImpurityDecreases, getImpurityDecreases, getKValue, getM_Tree, getMaxDepth, getMembershipValues, getMinNum, getMinVarianceProp, getNumFolds, getOptions, getSeed, globalInfo, graph, graphType, KValueTipText, listOptions, main, maxDepthTipText, minNumTipText, minVariancePropTipText, numElements, numFoldsTipText, seedTipText, setAllowUnclassifiedInstances, setBreakTiesRandomly, setComputeImpurityDecreases, setKValue, setMaxDepth, setMinNum, setMinVarianceProp, setNumFolds, setOptions, setSeed, toString, variance
-
Methods inherited from class weka.classifiers.AbstractClassifier
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getRevision, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
-
-
-
-
Field Detail
-
tree
protected AccessibleRandomTree.AccessibleTree tree
Internal tree object providing access to leaf node information.
-
-
Method Detail
-
distributionForInstance
public double[] distributionForInstance(weka.core.Instance instance) throws java.lang.Exception- Specified by:
distributionForInstancein interfaceweka.classifiers.Classifier- Overrides:
distributionForInstancein classweka.classifiers.trees.RandomTree- Throws:
java.lang.Exception
-
buildClassifier
public void buildClassifier(weka.core.Instances data) throws java.lang.Exception- Specified by:
buildClassifierin interfaceweka.classifiers.Classifier- Overrides:
buildClassifierin classweka.classifiers.trees.RandomTree- Throws:
java.lang.Exception
-
getMTree
public AccessibleRandomTree.AccessibleTree getMTree()
- Returns:
- the m_Tree
-
getNosLeafNodes
public int getNosLeafNodes()
- Returns:
- the nosLeafNodes
-
getLastNode
public int getLastNode()
- Returns:
- the lastNode
-
singleVariance
protected static double singleVariance(double s, double sS, double weight)Computes the variance for a single set- Parameters:
s-sS-weight- the weight- Returns:
- the variance
-
-