public class DecisionTreeModelReadWrite
extends java.lang.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,
java.lang.String impurityType)
Given all data for all nodes in a tree, rebuild the tree.
|
static Node |
loadTreeNodes(java.lang.String path,
org.apache.spark.ml.util.DefaultParamsReader.Metadata metadata,
SQLContext sqlContext)
Load a decision tree from a file.
|
public static Node loadTreeNodes(java.lang.String path, org.apache.spark.ml.util.DefaultParamsReader.Metadata metadata, SQLContext sqlContext)
path
- (undocumented)metadata
- (undocumented)sqlContext
- (undocumented)public static Node buildTreeFromNodes(DecisionTreeModelReadWrite.NodeData[] data, java.lang.String impurityType)
data
- Unsorted node dataimpurityType
- Impurity type for this tree