[jvm-packages] getTreeLimit return type should be Int

This commit is contained in:
Matthew Tovbin 2018-08-17 09:36:00 -07:00 committed by Nan Zhu
parent ac7fc1306b
commit b53a5a262c

View File

@ -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 = $(treeLimit) final def getTreeLimit: Int = $(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,