Class DecisionTreeModel.SaveLoadV1_0$.NodeData
Object
org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0$.NodeData
- All Implemented Interfaces:
Serializable
,scala.Equals
,scala.Product
,scala.Serializable
- Enclosing class:
- DecisionTreeModel.SaveLoadV1_0$
public class DecisionTreeModel.SaveLoadV1_0$.NodeData
extends Object
implements scala.Product, scala.Serializable
Model data for model import/export
- See Also:
-
Constructor Summary
ConstructorDescriptionNodeData
(int treeId, int nodeId, org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.PredictData predict, double impurity, boolean isLeaf, scala.Option<org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.SplitData> split, scala.Option<Object> leftNodeId, scala.Option<Object> rightNodeId, scala.Option<Object> infoGain) -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.NodeData
static org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.NodeData
double
impurity()
scala.Option<Object>
infoGain()
boolean
isLeaf()
scala.Option<Object>
int
nodeId()
org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.PredictData
predict()
scala.Option<Object>
scala.Option<org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.SplitData>
split()
int
treeId()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
NodeData
public NodeData(int treeId, int nodeId, org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.PredictData predict, double impurity, boolean isLeaf, scala.Option<org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.SplitData> split, scala.Option<Object> leftNodeId, scala.Option<Object> rightNodeId, scala.Option<Object> infoGain)
-
-
Method Details
-
apply
public static org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.NodeData apply(int treeId, Node n) -
apply
public static org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.NodeData apply(Row r) -
treeId
public int treeId() -
nodeId
public int nodeId() -
predict
public org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.PredictData predict() -
impurity
public double impurity() -
isLeaf
public boolean isLeaf() -
split
public scala.Option<org.apache.spark.mllib.tree.model.DecisionTreeModel.SaveLoadV1_0.SplitData> split() -
leftNodeId
-
rightNodeId
-
infoGain
-