[jvm-packages] Use treeLimit param in getTreeLimit (#3575)

This commit is contained in:
Matthew Tovbin 2018-08-10 09:38:58 -07:00 committed by Nan Zhu
parent 9c647d8130
commit 7300002516

View File

@ -240,7 +240,7 @@ private[spark] trait BoosterParams extends Params {
final val treeLimit = new IntParam(this, name = "treeLimit",
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,
minChildWeight -> 1, maxDeltaStep -> 0,