Package org.apache.spark.ml.tree
Class DecisionTreeModelReadWrite.NodeData
Object
org.apache.spark.ml.tree.DecisionTreeModelReadWrite.NodeData
- All Implemented Interfaces:
- Serializable,- scala.Equals,- scala.Product
- Enclosing class:
- DecisionTreeModelReadWrite
public static class DecisionTreeModelReadWrite.NodeData
extends Object
implements scala.Product, Serializable
Info for a 
Node
 param: id Index used for tree reconstruction. Indices follow a pre-order traversal. param: impurityStats Stats array. Impurity type is stored in metadata. param: rawCount The unweighted number of samples falling in this node. param: gain Gain, or arbitrary value if leaf node. param: leftChild Left child index, or arbitrary value if leaf node. param: rightChild Right child index, or arbitrary value if leaf node. param: split Split info, or arbitrary value if leaf node.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionNodeData(int id, double prediction, double impurity, double[] impurityStats, long rawCount, double gain, int leftChild, int rightChild, DecisionTreeModelReadWrite.SplitData split) 
- 
Method SummaryMethods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.EqualscanEqual, equalsMethods inherited from interface scala.ProductproductArity, productElement, productElementName, productElementNames, productIterator, productPrefix
- 
Constructor Details- 
NodeDatapublic NodeData(int id, double prediction, double impurity, double[] impurityStats, long rawCount, double gain, int leftChild, int rightChild, DecisionTreeModelReadWrite.SplitData split) 
 
- 
- 
Method Details- 
idpublic int id()
- 
predictionpublic double prediction()
- 
impuritypublic double impurity()
- 
impurityStatspublic double[] impurityStats()
- 
rawCountpublic long rawCount()
- 
gainpublic double gain()
- 
leftChildpublic int leftChild()
- 
rightChildpublic int rightChild()
- 
split
 
-