xgboost icon indicating copy to clipboard operation
xgboost copied to clipboard

continue training of the existing model

Open alizzz opened this issue 11 years ago • 3 comments

Is there a method to continue training a model? For example, let's say I have trained a model for 100 rounds, but then decided that I can go to 150. Do I have to train it again for the 150, or there is a way to train another 50 round starting from already trained model (let's assume that all other parameters, including the data, remain the same). This is similar functionality that gbm offers with gbm.more(...) method.

alizzz avatar Sep 11 '15 06:09 alizzz

Please check the following: python: https://github.com/dmlc/xgboost/blob/master/demo/guide-python/boost_from_prediction.py R: https://github.com/dmlc/xgboost/blob/master/R-package/demo/boost_from_prediction.R

hetong007 avatar Sep 12 '15 07:09 hetong007

I guess he means something like this: https://github.com/Far0n/xgboost/commit/c768a042cba117547a10aa7682f7e6fd60cec6ea

Far0n avatar Sep 12 '15 14:09 Far0n

Would be great to see this feature augmented to the R implementation

Quares avatar Oct 21 '15 19:10 Quares