Package org.apache.spark.ml.tree
Class LeafNode
Object
org.apache.spark.ml.tree.Node
org.apache.spark.ml.tree.LeafNode
- All Implemented Interfaces:
- Serializable
Decision tree leaf node.
 param:  prediction  Prediction this node makes
 param:  impurity  Impurity measure at this node (for training data)
- See Also:
- 
Method Details- 
impuritypublic double impurity()Description copied from class:NodeImpurity measure at this node (for training data)
- 
predictionpublic double prediction()Description copied from class:NodePrediction a leaf node makes, or which an internal node would make if it were a leaf node- Specified by:
- predictionin class- Node
 
- 
toString
 
-