Documentation of 'ca.pfv.spmf.algorithms.classifiers.decisiontree.id3.DecisionTree' Java class
DecisionTree
ca.pfv.spmf.algorithms.classifiers.decisiontree.id3

Class DecisionTree



  • public class DecisionTree
    extends java.lang.Object
    This class represents a decision tree created by the ID3 algorithm.
    See Also:
    AlgoID3, Node, DecisionNode, ClassNode
    • Constructor Summary

      Constructors 
      Constructor and Description
      DecisionTree() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String predictTargetAttributeValue(java.lang.String[] newInstance)
      This method predict the class of an instance.
      void print()
      Print the tree to System.out.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DecisionTree

        public DecisionTree()
    • Method Detail

      • print

        public void print()
        Print the tree to System.out.
      • predictTargetAttributeValue

        public java.lang.String predictTargetAttributeValue(java.lang.String[] newInstance)
        This method predict the class of an instance.
        Parameters:
        newInstance - an instance for which to perform the prediction.
        Returns:
        Return the class name or null if the tree cannot predict the class, for example because some value does not appear in the tree.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.