public final class LeafNode extends Node
Modifier and Type | Method and Description |
---|---|
double |
impurity()
Impurity measure at this node (for training data)
|
org.apache.spark.mllib.tree.impurity.ImpurityCalculator |
impurityStats()
Statistics aggregated from training data at this node, used to compute prediction, impurity,
and probabilities.
|
double |
prediction()
Prediction a leaf node makes, or which an internal node would make if it were a leaf node
|
java.lang.String |
toString() |
public double prediction()
Node
prediction
in class Node
public double impurity()
Node
public org.apache.spark.mllib.tree.impurity.ImpurityCalculator impurityStats()
Node
public java.lang.String toString()
toString
in class java.lang.Object