[xgboost4j-spark] Allow set the parameter "maxLeaves". (#4226)
* Allow set the parameter "maxLeaves". * Add "setMaxLeaves" to XGBoostRegressor.
This commit is contained in:
parent
9837b09b20
commit
224786f67f
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user