Xgboost: incremental learning, partial_fit like sklearn?

Created on 20 Oct 2016  路  8Comments  路  Source: dmlc/xgboost

My data is too big to fit into memory, do xgboost support partial_fit like sklearn? support incremental learning.

Most helpful comment

Here is a gist to demonstrate this.

All 8 comments

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

@nickkaranatsios Fixed it. Changed my username recently.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

uasthana15 picture uasthana15  路  4Comments

nnorton24 picture nnorton24  路  3Comments

pplonski picture pplonski  路  3Comments

FabHan picture FabHan  路  4Comments

XiaoxiaoWang87 picture XiaoxiaoWang87  路  3Comments