Skip to content

Commit 7e24a6e

Browse files
committed
fix nthread for XGBoost evaluation
1 parent 0f85497 commit 7e24a6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/analysis_utils.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ end
1212

1313
function init_BDT()
1414
SFinZs = Tuple(
15-
XGBoost.Booster(XGBoost.DMatrix[], model_file = joinpath(BDT_MODEL_DIR, "SFinZ$i.model"))
15+
XGBoost.Booster(XGBoost.DMatrix[], model_file = joinpath(BDT_MODEL_DIR, "SFinZ$i.model"), nthread=1)
1616
for i = 0:4
1717
)
1818
SFnoZs = Tuple(
19-
XGBoost.Booster(XGBoost.DMatrix[], model_file = joinpath(BDT_MODEL_DIR, "SFnoZ$i.model"))
19+
XGBoost.Booster(XGBoost.DMatrix[], model_file = joinpath(BDT_MODEL_DIR, "SFnoZ$i.model"), nthread=1)
2020
for i = 0:4
2121
)
2222
DFs = Tuple(
23-
XGBoost.Booster(XGBoost.DMatrix[], model_file = joinpath(BDT_MODEL_DIR, "DF$i.model"))
23+
XGBoost.Booster(XGBoost.DMatrix[], model_file = joinpath(BDT_MODEL_DIR, "DF$i.model"), nthread=1)
2424
for i = 0:4
2525
)
2626
return function f(ary; fold, region)

0 commit comments

Comments
 (0)