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

incremental learning, partial_fit like sklearn? #1686

Closed
xiaoleihuang opened this issue Oct 20, 2016 · 8 comments
Closed

incremental learning, partial_fit like sklearn? #1686

xiaoleihuang opened this issue Oct 20, 2016 · 8 comments

Comments

@xiaoleihuang
Copy link

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

@xgdgsc
Copy link
Contributor

xgdgsc commented Mar 8, 2017

I' m also looking for this feature.

@xiaoleihuang
Copy link
Author

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....

@xgdgsc
Copy link
Contributor

xgdgsc commented Mar 9, 2017

Thanks. That's cool. But adding a similar API as sklearn could also be helpful.

@xiaoleihuang
Copy link
Author

@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...

@ylogx
Copy link

ylogx commented Dec 20, 2017

Here is a gist to demonstrate this.

@nickkaranatsios
Copy link

The link to gist file is broken

@antontarasenko
Copy link

antontarasenko commented Jan 12, 2018

@ylogx
Copy link

ylogx commented Jan 12, 2018

@nickkaranatsios Fixed it. Changed my username recently.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants