[jvm-packages] Use treeLimit param in getTreeLimit (#3575)
This commit is contained in:
parent
9c647d8130
commit
7300002516
@ -240,7 +240,7 @@ private[spark] trait BoosterParams extends Params {
|
|||||||
final val treeLimit = new IntParam(this, name = "treeLimit",
|
final val treeLimit = new IntParam(this, name = "treeLimit",
|
||||||
doc = "number of trees used in the prediction; defaults to 0 (use all trees).")
|
doc = "number of trees used in the prediction; defaults to 0 (use all trees).")
|
||||||
|
|
||||||
final def getTreeLimit: Double = $(lambdaBias)
|
final def getTreeLimit: Double = $(treeLimit)
|
||||||
|
|
||||||
setDefault(eta -> 0.3, gamma -> 0, maxDepth -> 6,
|
setDefault(eta -> 0.3, gamma -> 0, maxDepth -> 6,
|
||||||
minChildWeight -> 1, maxDeltaStep -> 0,
|
minChildWeight -> 1, maxDeltaStep -> 0,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user