Models
This section explains how to obtain a model compatible with PyXAI to compute explanations. There are three ways to do so:
- Build a model by hand, using tree nodes and leaves via the
Buildermodule. This is useful for testing and verifying explanations on controlled examples. - Train a model with PyXAI’s
Learningmodule, which wraps Scikit-learn, XGBoost and LightGBM and handles the full experimental protocol (train/test split, cross-validation, metrics). - Import an existing model that has already been trained outside of PyXAI, using the
ModelIOclass.
Once a model is obtained, it can be saved and reloaded at any time using ModelIO.