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