[xgboost4j-spark] Allow set the parameter "maxLeaves". (#4226)

* Allow set the parameter "maxLeaves".

* Add "setMaxLeaves" to XGBoostRegressor.
This commit is contained in:
Shaochen Shi 2019-03-08 10:36:47 +08:00 committed by Nan Zhu
parent 9837b09b20
commit 224786f67f
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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)