mGBDT icon indicating copy to clipboard operation
mGBDT copied to clipboard

Problem with Pop

Open eladmw opened this issue 4 years ago • 1 comments

/opt/conda/lib/python3.7/site-packages/joblib/parallel.py in (.0) 254 with parallel_backend(self._backend, n_jobs=self._n_jobs): 255 return [func(*args, **kwargs) --> 256 for func, args, kwargs in self.items] 257 258 def len(self):

/kaggle/working/mGBDT/lib/mgbdt/model/online_xgb.py in fit_increment(self, X, y, num_boost_round, params) 13 for k, v in extra_params.items(): 14 params[k] = v ---> 15 params.pop("n_estimators") 16 17 if callable(self.objective):

KeyError: 'n_estimators'

eladmw avatar Jan 15 '21 03:01 eladmw

It was that the item "n_estimators" wasn't in the dictionary. I may replace this with del(params["n_estimators"]). Or simply make sure that some version of "n_estimators" is in the dictionary before removal

eladmw avatar Jan 15 '21 03:01 eladmw