Add n_jobs as an alias of nthread. (#4842)
This commit is contained in:
parent
0fc7dcfe6c
commit
6a5e805886
@ -33,6 +33,8 @@ struct GenericParameter : public dmlc::Parameter<GenericParameter> {
|
|||||||
"mode.");
|
"mode.");
|
||||||
DMLC_DECLARE_FIELD(nthread).set_default(0).describe(
|
DMLC_DECLARE_FIELD(nthread).set_default(0).describe(
|
||||||
"Number of threads to use.");
|
"Number of threads to use.");
|
||||||
|
DMLC_DECLARE_ALIAS(nthread, n_jobs);
|
||||||
|
|
||||||
DMLC_DECLARE_FIELD(gpu_id)
|
DMLC_DECLARE_FIELD(gpu_id)
|
||||||
.set_default(-1)
|
.set_default(-1)
|
||||||
.set_lower_bound(-1)
|
.set_lower_bound(-1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user