Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Pop #7

Open
eladmw opened this issue Jan 15, 2021 · 1 comment
Open

Problem with Pop #7

eladmw opened this issue Jan 15, 2021 · 1 comment

Comments

@eladmw
Copy link

eladmw commented Jan 15, 2021

/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
Copy link
Author

eladmw commented Jan 15, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant