File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -2093,8 +2093,7 @@ def make_dc_model(self, model_dir):
20932093 missing = np .nan ,
20942094 importance_type = 'gain' ,
20952095 n_jobs = - 1 ,
2096- gpu_id = - 1 ,
2097- n_gpus = 0 ,
2096+ device = 'cpu' ,
20982097 max_bin = 16 ,
20992098 )
21002099 else :
@@ -2127,9 +2126,8 @@ def make_dc_model(self, model_dir):
21272126 random_state = self .seed ,
21282127 importance_type = 'gain' ,
21292128 missing = np .nan ,
2130- gpu_id = - 1 ,
2129+ device = 'cpu' ,
21312130 n_jobs = - 1 ,
2132- n_gpus = 0 ,
21332131 max_bin = 16 ,
21342132 )
21352133
@@ -2241,8 +2239,7 @@ def reload_model(self, reload_dir):
22412239 missing = np .nan ,
22422240 importance_type = 'gain' ,
22432241 n_jobs = - 1 ,
2244- gpu_id = - 1 ,
2245- n_gpus = 0 ,
2242+ device = 'cpu' ,
22462243 max_bin = 16 ,
22472244 )
22482245 else :
@@ -2265,9 +2262,8 @@ def reload_model(self, reload_dir):
22652262 random_state = self .seed ,
22662263 importance_type = 'gain' ,
22672264 missing = np .nan ,
2268- gpu_id = - 1 ,
2265+ device = 'cpu' ,
22692266 n_jobs = - 1 ,
2270- n_gpus = 0 ,
22712267 max_bin = 16 ,
22722268 )
22732269
@@ -2988,4 +2984,4 @@ def get_model_specific_metadata(self):
29882984 weight_decay_penalty_type = self .params .weight_decay_penalty_type
29892985 )
29902986 model_spec_metadata = dict (nn_specific = nn_metadata )
2991- return model_spec_metadata
2987+ return model_spec_metadata
You can’t perform that action at this time.
0 commit comments