MCPcopy Create free account
hub / github.com/dmlc/xgboost / OldSerialization

Function OldSerialization

src/common/error_msg.h:65–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65constexpr StringView OldSerialization() {
66 return R"doc(If you are loading a serialized model (like pickle in Python, RDS in R) or
67configuration generated by an older version of XGBoost, please export the model by calling
68`Booster.save_model` from that version first, then load it back in current version. See:
69
70 https://xgboost.readthedocs.io/en/stable/tutorials/saving_model.html
71
72for more details about differences between saving model and serializing.
73)doc";
74}
75
76inline void WarnOldSerialization() {
77 // Display it once is enough. Otherwise this can be really verbose in distributed

Callers 1

WarnOldSerializationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected