xgboost icon indicating copy to clipboard operation
xgboost copied to clipboard

Can the variable in xgboost be initialized?

Open ushanbrisk opened this issue 10 years ago • 2 comments

I am using xgboost linear mode to do some optimization. The process needs call xgboost within a loop, so xgboost will be called for many times. I am asking whether the initial value for variable can be initialized or set by us to feed into xgboost, so that the optimized result can be utilized in the next xgboost optimization operation ? Any ideas? Thank you very much.

ushanbrisk avatar Aug 24 '16 10:08 ushanbrisk

If you want to continue your training on a previous model, please check https://github.com/dmlc/xgboost/blob/master/R-package/demo/boost_from_prediction.R

hetong007 avatar Aug 24 '16 20:08 hetong007

got you, I tested it, it works, and found I need to add all the model in each iteration, so for the linear coefficients. Thank you very much!

ushanbrisk avatar Aug 25 '16 08:08 ushanbrisk