Package org.neo4j.gds.ml.decisiontree
Class TreeNode<PREDICTION extends Number>
java.lang.Object
org.neo4j.gds.ml.decisiontree.TreeNode<PREDICTION>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintinthashCode()booleanbooleanstatic <T extends Number>
longleafMemoryEstimation(Class<T> leafType) render()Renders the variable into a human readable representation.voidsetLeftChild(TreeNode leftChild) voidsetPrediction(PREDICTION prediction) voidsetRightChild(TreeNode rightChild) static longdoubletoString()
-
Constructor Details
-
TreeNode
public TreeNode(int index, double value) -
TreeNode
-
-
Method Details
-
splitMemoryEstimation
public static long splitMemoryEstimation() -
leafMemoryEstimation
-
setPrediction
-
prediction
-
featureIndex
public int featureIndex() -
thresholdValue
public double thresholdValue() -
leftChild
-
setLeftChild
-
hasLeftChild
public boolean hasLeftChild() -
rightChild
-
setRightChild
-
hasRightChild
public boolean hasRightChild() -
toString
-
render
Renders the variable into a human readable representation. -
equals
-
hashCode
public int hashCode()
-