My data is too big to fit into memory, do xgboost support partial_fit like sklearn? support incremental learning.
I' m also looking for this feature.
Hi, @xgdgsc Plz check this one below:
xgboost.train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None, maximize=False, early_stopping_rounds=None, evals_result=None, verbose_eval=True, xgb_model=None, callbacks=None, learning_rates=None)
This API solves problem.
The link of documentation is: http://xgboost.readthedocs.io/en/latest/python/python_api.html#xgboost.train
Sorry I forgot to update my issue....
Thanks. That's cool. But adding a similar API as sklearn could also be helpful.
@xgdgsc Yeah,the model supports incremental training, you might read the source code there. It won't affect your usage, it's just a different name...
Here is a gist to demonstrate this.
The link to gist file is broken
@xgdgsc
xgboost.XGBClassifier.fit()
supports parameter xgb_model
for incremental learning:
@nickkaranatsios Fixed it. Changed my username recently.
Most helpful comment
Here is a gist to demonstrate this.