[Breaking][jvm-packages] remove timeoutRequestWorkers parameter (#7839)

This commit is contained in:
Bobby Wang
2022-05-13 16:26:25 +08:00
committed by GitHub
parent 11d65fcb21
commit 9fa7ed1743
6 changed files with 7 additions and 39 deletions

View File

@@ -75,7 +75,6 @@ private[scala] case class XGBoostExecutionParams(
missing: Float,
allowNonZeroForMissing: Boolean,
trackerConf: TrackerConf,
timeoutRequestWorkers: Long,
checkpointParam: Option[ExternalCheckpointParams],
xgbInputParams: XGBoostExecutionInputParams,
earlyStoppingParams: XGBoostExecutionEarlyStoppingParams,
@@ -201,12 +200,6 @@ private[this] class XGBoostExecutionParamsFactory(rawParams: Map[String, Any], s
case _ => throw new IllegalArgumentException("parameter \"tracker_conf\" must be an " +
"instance of TrackerConf.")
}
val timeoutRequestWorkers: Long = overridedParams.get("timeout_request_workers") match {
case None => 0L
case Some(interval: Long) => interval
case _ => throw new IllegalArgumentException("parameter \"timeout_request_workers\" must be" +
" an instance of Long.")
}
val checkpointParam =
ExternalCheckpointParams.extractParams(overridedParams)
@@ -227,7 +220,6 @@ private[this] class XGBoostExecutionParamsFactory(rawParams: Map[String, Any], s
val xgbExecParam = XGBoostExecutionParams(nWorkers, round, useExternalMemory, obj, eval,
missing, allowNonZeroForMissing, trackerConf,
timeoutRequestWorkers,
checkpointParam,
inputParams,
xgbExecEarlyStoppingParams,

View File

@@ -66,8 +66,6 @@ class XGBoostClassifier (
def setMissing(value: Float): this.type = set(missing, value)
def setTimeoutRequestWorkers(value: Long): this.type = set(timeoutRequestWorkers, value)
def setCheckpointPath(value: String): this.type = set(checkpointPath, value)
def setCheckpointInterval(value: Int): this.type = set(checkpointInterval, value)

View File

@@ -68,8 +68,6 @@ class XGBoostRegressor (
def setMissing(value: Float): this.type = set(missing, value)
def setTimeoutRequestWorkers(value: Long): this.type = set(timeoutRequestWorkers, value)
def setCheckpointPath(value: String): this.type = set(checkpointPath, value)
def setCheckpointInterval(value: Int): this.type = set(checkpointInterval, value)

View File

@@ -112,15 +112,6 @@ private[spark] trait GeneralParams extends Params {
final def getAllowNonZeroForMissingValue: Boolean = $(allowNonZeroForMissing)
/**
* the maximum time to wait for the job requesting new workers. default: 30 minutes
*/
final val timeoutRequestWorkers = new LongParam(this, "timeoutRequestWorkers", "the maximum " +
"time to request new Workers if numCores are insufficient. The timeout will be disabled " +
"if this value is set smaller than or equal to 0.")
final def getTimeoutRequestWorkers: Long = $(timeoutRequestWorkers)
/**
* The hdfs folder to load and save checkpoint boosters. default: `empty_string`
*/
@@ -181,7 +172,7 @@ private[spark] trait GeneralParams extends Params {
setDefault(numRound -> 1, numWorkers -> 1, nthread -> 1,
useExternalMemory -> false, silent -> 0, verbosity -> 1,
customObj -> null, customEval -> null, missing -> Float.NaN,
trackerConf -> TrackerConf(), seed -> 0, timeoutRequestWorkers -> 30 * 60 * 1000L,
trackerConf -> TrackerConf(), seed -> 0,
checkpointPath -> "", checkpointInterval -> -1,
allowNonZeroForMissing -> false)
}