You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The R package keeps a best_iteration number that it uses to serialize model objects. If one de-serializes a model that had a best iteration number lower than the actual number of iterations, further rounds after that will be lost and the predictions will not match.
I think the best solution here would be to create a new C-level function to dump the model that would not take any additional parameters, dumping instead everything in the booster, and use that to handle automated serialization of models in R/Python.
The R package keeps a
best_iteration
number that it uses to serialize model objects. If one de-serializes a model that had a best iteration number lower than the actual number of iterations, further rounds after that will be lost and the predictions will not match.I think the best solution here would be to create a new C-level function to dump the model that would not take any additional parameters, dumping instead everything in the booster, and use that to handle automated serialization of models in R/Python.
Example using code from the tests:
The text was updated successfully, but these errors were encountered: