Class 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.RandomTree
    Random Tree extension providing leaf node information of the constructed tree.
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      class  AccessibleRandomTree.AccessibleTree  
      • Nested classes/interfaces inherited from class weka.classifiers.trees.RandomTree

        weka.classifiers.trees.RandomTree.Tree
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected AccessibleRandomTree.AccessibleTree tree
      Internal 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
      • Fields inherited from class weka.classifiers.AbstractClassifier

        BATCH_SIZE_DEFAULT, m_BatchSize, m_Debug, m_DoNotCheckCapabilities, m_numDecimalPlaces, NUM_DECIMAL_PLACES_DEFAULT
      • Fields inherited from interface weka.core.Drawable

        BayesNet, Newick, NOT_DRAWABLE, TREE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void buildClassifier​(weka.core.Instances data)  
      double[] distributionForInstance​(weka.core.Instance instance)  
      int getLastNode()  
      AccessibleRandomTree.AccessibleTree getMTree()  
      int getNosLeafNodes()  
      protected static double singleVariance​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • AccessibleRandomTree

        public AccessibleRandomTree()
    • Method Detail

      • distributionForInstance

        public double[] distributionForInstance​(weka.core.Instance instance)
                                         throws java.lang.Exception
        Specified by:
        distributionForInstance in interface weka.classifiers.Classifier
        Overrides:
        distributionForInstance in class weka.classifiers.trees.RandomTree
        Throws:
        java.lang.Exception
      • buildClassifier

        public void buildClassifier​(weka.core.Instances data)
                             throws java.lang.Exception
        Specified by:
        buildClassifier in interface weka.classifiers.Classifier
        Overrides:
        buildClassifier in class weka.classifiers.trees.RandomTree
        Throws:
        java.lang.Exception
      • 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