pyspark.mllib.tree.
GradientBoostedTreesModel
Represents a gradient-boosted tree model.
New in version 1.3.0.
Methods
call(name, *a)
call
Call method of java_model
load(sc, path)
load
Load a model from the given path.
numTrees()
numTrees
Get number of trees in ensemble.
predict(x)
predict
Predict values for a single data point or an RDD of points using the model trained.
save(sc, path)
save
Save this model to the given path.
toDebugString()
toDebugString
Full model
totalNumNodes()
totalNumNodes
Get total number of nodes, summed over all trees in the ensemble.
Methods Documentation
Notes
In Python, predict cannot currently be used within an RDD transformation or action. Call predict directly on the RDD instead.