Package org.apache.spark.ml.tree
Class InternalNode
Object
org.apache.spark.ml.tree.Node
org.apache.spark.ml.tree.InternalNode
- All Implemented Interfaces:
- Serializable
Internal Decision Tree node.
 param:  prediction  Prediction this node would make if it were a leaf node
 param:  impurity  Impurity measure at this node (for training data)
 param:  gain Information gain value. Values less than 0 indicate missing values;
             this quirk will be removed with future updates.
 param:  leftChild  Left-hand child node
 param:  rightChild  Right-hand child node
 param:  split  Information about the test used to split to the left or right child.
- See Also:
- 
Method Summary
- 
Method Details- 
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
 
- 
impuritypublic double impurity()Description copied from class:NodeImpurity measure at this node (for training data)
- 
gainpublic double gain()
- 
leftChild
- 
rightChild
- 
split
- 
toString
 
-