| 63 | } |
| 64 | |
| 65 | constexpr StringView OldSerialization() { |
| 66 | return R"doc(If you are loading a serialized model (like pickle in Python, RDS in R) or |
| 67 | configuration 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 | |
| 72 | for more details about differences between saving model and serializing. |
| 73 | )doc"; |
| 74 | } |
| 75 | |
| 76 | inline void WarnOldSerialization() { |
| 77 | // Display it once is enough. Otherwise this can be really verbose in distributed |
no outgoing calls
no test coverage detected