Class TreeNode

  • Direct Known Subclasses:
    FeatureNode, ResponseNode

    public abstract class TreeNode
    extends java.lang.Object
    Author:
    bratseth
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeNode​(java.util.Optional<java.lang.Integer> samples)  
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static TreeNode fromDom​(org.w3c.dom.Node node)  
      java.util.Optional<java.lang.Integer> samples()
      Returns the number of samples in the training set that matches this node if this model does not contain this information (i.e if it is not an "ext" model).
      abstract java.lang.String toRankingExpression()  
      • Methods inherited from class java.lang.Object

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

      • TreeNode

        public TreeNode​(java.util.Optional<java.lang.Integer> samples)
    • Method Detail

      • toRankingExpression

        public abstract java.lang.String toRankingExpression()
      • samples

        public java.util.Optional<java.lang.Integer> samples()
        Returns the number of samples in the training set that matches this node if this model does not contain this information (i.e if it is not an "ext" model).
      • fromDom

        public static TreeNode fromDom​(org.w3c.dom.Node node)