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:
@@ -661,13 +661,13 @@ class LearnerImpl : public Learner {
|
||||
CHECK(header == serialisation_header_) // NOLINT
|
||||
<< R"doc(
|
||||
|
||||
If you are loading a serialized model (like pickle in Python) generated by older XGBoost,
|
||||
please export the model by calling `Booster.save_model` from that version first, then load
|
||||
it back in current version. See:
|
||||
If you are loading a serialized model (like pickle in Python) generated by older
|
||||
XGBoost, please export the model by calling `Booster.save_model` from that version
|
||||
first, then load it back in current version. See:
|
||||
|
||||
https://xgboost.readthedocs.io/en/latest/tutorials/saving_model.html
|
||||
https://xgboost.readthedocs.io/en/latest/tutorials/saving_model.html
|
||||
|
||||
for more details about differences between saving model and serializing.
|
||||
for more details about differences between saving model and serializing.
|
||||
|
||||
)doc";
|
||||
int64_t json_offset {-1};
|
||||
|
||||
Reference in New Issue
Block a user