Skip to content

Commit

Permalink
add maxBins to to the train method as well
Browse files Browse the repository at this point in the history
  • Loading branch information
holdenk committed May 21, 2015
1 parent af7f274 commit 3a09170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/mllib/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,11 +435,11 @@ class GradientBoostedTrees(object):

@classmethod
def _train(cls, data, algo, categoricalFeaturesInfo,
loss, numIterations, learningRate, maxDepth):
loss, numIterations, learningRate, maxDepth, maxBins):
first = data.first()
assert isinstance(first, LabeledPoint), "the data should be RDD of LabeledPoint"
model = callMLlibFunc("trainGradientBoostedTreesModel", data, algo, categoricalFeaturesInfo,
loss, numIterations, learningRate, maxDepth)
loss, numIterations, learningRate, maxDepth, maxBins)
return GradientBoostedTreesModel(model)

@classmethod
Expand Down

0 comments on commit 3a09170

Please sign in to comment.