Save Scikit-Learn attributes into learner attributes. (#5245)

* Remove the recommendation for pickle.

* Save skl attributes in booster.attr

* Test loading scikit-learn model with native booster.
This commit is contained in:
Jiaming Yuan
2020-01-30 16:00:18 +08:00
committed by GitHub
parent c67163250e
commit 472ded549d
8 changed files with 194 additions and 57 deletions

View File

@@ -85,6 +85,14 @@ again after the model is loaded. If the customized function is useful, please co
making a PR for implementing it inside XGBoost, this way we can have your functions
working with different language bindings.
******************************************************
Loading pickled file from different version of XGBoost
******************************************************
As noted, pickled model is neither portable nor stable, but in some cases the pickled
models are valuable. One way to restore it in the future is to load it back with that
specific version of Python and XGBoost, export the model by calling `save_model`.
********************************************************
Saving and Loading the internal parameters configuration
********************************************************