mGBDT
mGBDT copied to clipboard
Problem with Pop
/opt/conda/lib/python3.7/site-packages/joblib/parallel.py in
/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'
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