Can a human-readable tree dump be used as a drop-in replacement for an XGBoost model saved for loading?
Classic MLLevel: IntermediateXGBoost · Model IO
Can a human-readable tree dump be used as a drop-in replacement for an XGBoost model saved for loading?
Hints
- Readable output and reloadable state have different goals.
- Use the paired save/load API.
Answer
No. dump_model is an inspection/export view, while save_model produces the supported reloadable model representation. Keep the actual model artifact and use dumps only for inspection or a deliberately tested converter.
Source and licence: XGBoost · Model IO · Apache-2.0 · answer: Quantoros editorial