public class DecisionTreeModel
extends Object
implements scala.Serializable
| Constructor and Description |
|---|
DecisionTreeModel(Node topNode,
scala.Enumeration.Value algo) |
| Modifier and Type | Method and Description |
|---|---|
scala.Enumeration.Value |
algo() |
RDD<Object> |
predict(RDD<Vector> features)
Predict values for the given data set using the model trained.
|
double |
predict(Vector features)
Predict values for a single data point using the model trained.
|
Node |
topNode() |
public DecisionTreeModel(Node topNode, scala.Enumeration.Value algo)
public Node topNode()
public scala.Enumeration.Value algo()
public double predict(Vector features)
features - array representing a single data point