[jvm-packages] Expose setMissing method in XGBoostClassificationModel / XGBoostRegressionModel (#4643)

This commit is contained in:
Philip Hyunsu Cho 2019-07-07 16:02:44 -07:00 committed by Nan Zhu
parent 1aaf4a679d
commit d333918f5e
2 changed files with 4 additions and 0 deletions

View File

@ -247,6 +247,8 @@ class XGBoostClassificationModel private[ml](
def setTreeLimit(value: Int): this.type = set(treeLimit, value)
def setMissing(value: Float): this.type = set(missing, value)
def setInferBatchSize(value: Int): this.type = set(inferBatchSize, value)
/**

View File

@ -242,6 +242,8 @@ class XGBoostRegressionModel private[ml] (
def setTreeLimit(value: Int): this.type = set(treeLimit, value)
def setMissing(value: Float): this.type = set(missing, value)
def setInferBatchSize(value: Int): this.type = set(inferBatchSize, value)
/**