PyXAI - Python eXplainable AI
PyXAI is a Python library (version 3.6 or later) allowing to bring explanations of various forms from classifiers resulting of machine learning techniques (Decision Tree, Random Forest, Boosted Tree).
More precisely, several types of explanations for the classification task of a given instance X can be computed:
- Abductive explanations for X are intended to explain why X has been classified in the way it has been classified by the ML model (thus, addressing the “Why?” question).
- Contrastive explanations for X is to explain why X has not been classified by the ML model as the user expected it (thus, addressing the “Why not?” question).
In addition to finding explanations, PyXAI also contains methods that perform operations (production, saving, loading) on models and instances.