Package org.apache.spark.ml.tree
Class Node
Object
org.apache.spark.ml.tree.Node
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- InternalNode,- LeafNode
Decision tree node interface.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Nodestatic NodeCreate a new Node from the old Node format, recursively creating child nodes as needed.abstract doubleimpurity()Impurity measure at this node (for training data)abstract doublePrediction a leaf node makes, or which an internal node would make if it were a leaf node
- 
Constructor Details- 
Nodepublic Node()
 
- 
- 
Method Details- 
fromOldpublic static Node fromOld(Node oldNode, scala.collection.immutable.Map<Object, Object> categoricalFeatures) Create a new Node from the old Node format, recursively creating child nodes as needed.- Parameters:
- oldNode- (undocumented)
- categoricalFeatures- (undocumented)
- Returns:
- (undocumented)
 
- 
dummyNode
- 
predictionpublic abstract double prediction()Prediction a leaf node makes, or which an internal node would make if it were a leaf node
- 
impuritypublic abstract double impurity()Impurity measure at this node (for training data)
 
-