Skip to content

Commit

Permalink
[xgboost4j-spark] Allow set the parameter "maxLeaves". (#4226)
Browse files Browse the repository at this point in the history
* Allow set the parameter "maxLeaves".

* Add "setMaxLeaves" to XGBoostRegressor.
  • Loading branch information
shishaochen authored and CodingCat committed Mar 8, 2019
1 parent 9837b09 commit 224786f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class XGBoostClassifier (

def setMaxBins(value: Int): this.type = set(maxBins, value)

def setMaxLeaves(value: Int): this.type = set(maxLeaves, value)

def setSketchEps(value: Double): this.type = set(sketchEps, value)

def setScalePosWeight(value: Double): this.type = set(scalePosWeight, value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class XGBoostRegressor (

def setMaxBins(value: Int): this.type = set(maxBins, value)

def setMaxLeaves(value: Int): this.type = set(maxLeaves, value)

def setSketchEps(value: Double): this.type = set(sketchEps, value)

def setScalePosWeight(value: Double): this.type = set(scalePosWeight, value)
Expand Down

0 comments on commit 224786f

Please sign in to comment.