public interface DecisionTreeModel
Modifier and Type | Method and Description |
---|---|
int |
depth()
Depth of the tree.
|
StructField |
getLeafField(String leafCol) |
NominalAttribute |
leafAttr() |
scala.collection.Iterator<LeafNode> |
leafIterator(Node node) |
int |
maxSplitFeatureIndex()
Trace down the tree, and return the largest feature index used in any split.
|
int |
numLeave() |
int |
numNodes()
Number of nodes in tree, including leaf nodes.
|
double |
predictLeaf(Vector features) |
Node |
rootNode()
Root of the decision tree
|
String |
toDebugString()
Full description of model
|
DecisionTreeModel |
toOld()
Convert to spark.mllib DecisionTreeModel (losing some information)
|
String |
toString()
Summary of the model
|
int depth()
StructField getLeafField(String leafCol)
NominalAttribute leafAttr()
scala.collection.Iterator<LeafNode> leafIterator(Node node)
node
- (undocumented)int maxSplitFeatureIndex()
int numLeave()
int numNodes()
double predictLeaf(Vector features)
features
- (undocumented)Node rootNode()
String toDebugString()
DecisionTreeModel toOld()
String toString()
toString
in class Object