org.apache.spark.mllib.tree.model
algorithm type -- classification or regression
algorithm type -- classification or regression
Get depth of tree.
Get depth of tree. E.g.: Depth 0 means 1 leaf node. Depth 1 means 1 internal node and 2 leaf nodes.
Current version of model save/load format.
Current version of model save/load format.
Get number of nodes in tree, including leaf nodes.
Get number of nodes in tree, including leaf nodes.
Predict values for the given data set using the model trained.
Predict values for the given data set using the model trained.
JavaRDD representing data points to be predicted
JavaRDD of predictions for each of the given data points
Predict values for the given data set using the model trained.
Predict values for the given data set using the model trained.
RDD representing data points to be predicted
RDD of predictions for each of the given data points
Predict values for a single data point using the model trained.
Predict values for a single data point using the model trained.
array representing a single data point
Double prediction from the trained model
Spark context used to save model data.
Path specifying the directory in which to save this model. If the directory already exists, this method throws an exception.
Print the full model to a string.
Print the full model to a string.
Print a summary of the model.
Print a summary of the model.
root node
root node
Decision tree model for classification or regression. This model stores the decision tree structure and parameters.