Class TreeNode<PREDICTION extends Number>

java.lang.Object
org.neo4j.gds.ml.decisiontree.TreeNode<PREDICTION>

public class TreeNode<PREDICTION extends Number> extends Object
  • Constructor Details

    • TreeNode

      public TreeNode(int index, double value)
    • TreeNode

      public TreeNode(PREDICTION prediction)
  • Method Details

    • splitMemoryEstimation

      public static long splitMemoryEstimation()
    • leafMemoryEstimation

      public static <T extends Number> long leafMemoryEstimation(Class<T> leafType)
    • setPrediction

      public void setPrediction(PREDICTION prediction)
    • prediction

      public PREDICTION prediction()
    • featureIndex

      public int featureIndex()
    • thresholdValue

      public double thresholdValue()
    • leftChild

      public TreeNode<PREDICTION> leftChild()
    • setLeftChild

      public void setLeftChild(TreeNode leftChild)
    • hasLeftChild

      public boolean hasLeftChild()
    • rightChild

      public TreeNode<PREDICTION> rightChild()
    • setRightChild

      public void setRightChild(TreeNode rightChild)
    • hasRightChild

      public boolean hasRightChild()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • render

      public String render()
      Renders the variable into a human readable representation.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object