public class DecisionTreeModelReadWrite
extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
DecisionTreeModelReadWrite.NodeData
Info for a  
Node | 
static class  | 
DecisionTreeModelReadWrite.NodeData$  | 
static class  | 
DecisionTreeModelReadWrite.SplitData
Info for a  
Split | 
static class  | 
DecisionTreeModelReadWrite.SplitData$  | 
| Constructor and Description | 
|---|
DecisionTreeModelReadWrite()  | 
| Modifier and Type | Method and Description | 
|---|---|
static Node | 
buildTreeFromNodes(DecisionTreeModelReadWrite.NodeData[] data,
                  String impurityType)
Given all data for all nodes in a tree, rebuild the tree. 
 | 
static Node | 
loadTreeNodes(String path,
             org.apache.spark.ml.util.DefaultParamsReader.Metadata metadata,
             SparkSession sparkSession)
Load a decision tree from a file. 
 | 
public static Node loadTreeNodes(String path, org.apache.spark.ml.util.DefaultParamsReader.Metadata metadata, SparkSession sparkSession)
path - (undocumented)metadata - (undocumented)sparkSession - (undocumented)public static Node buildTreeFromNodes(DecisionTreeModelReadWrite.NodeData[] data, String impurityType)
data - Unsorted node dataimpurityType - Impurity type for this tree