SkillAgentSearch skills...

Introduction To XAI

This repository provides a range of practical examples and educational resources for exploring the field of Explainable AI (XAI). You'll find examples using tools like LIME and SHAP to interpret machine learning model predictions, making the decision-making processes of complex algorithms more transparent and accessible

Install / Use

npx skills add Naviden/Introduction-to-XAI

Installs into whichever agent you are using.

About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Explainable AI (XAI): Theory, examples, ...

Overview

This repository offers practical examples and educational resources to help you understand Explainable AI (XAI). It includes Jupyter notebooks and Python scripts that demonstrate the use of various XAI frameworks, such as LIME, SHAP, Anchors, Grad-CAM, Integrated Gradients, ALE plots, DiCE, and more. The aim is to provide a hands-on approach to interpreting machine learning model predictions and to shed light on the decision-making processes of complex algorithms.

Contents

  • Theory/ - Jupyter notebooks covering XAI fundamentals: white-box vs. black-box models, surrogate models, global vs. local explanations, and explanation types (plain-fact, counterfactual, contrastive).
  • Tools/ - Hands-on examples for various XAI frameworks: LIME (tabular, text, image), SHAP (tabular, summary plots, survival models, text/image), Anchors, RuleFit, MERLIN, PDP/ICE plots, Grad-CAM, Integrated Gradients, ALE plots, Permutation Importance, Attention Visualization, DiCE (counterfactual explanations), and a Feature Importance Comparison.
  • Practice/ - Practice notebooks for students to apply XAI techniques.

Getting Started

To explore the examples in this repository, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Naviden/Introduction-to-XAI.git
    
  2. Create a virtual environment with Python 3.11 and install dependencies:

    python3.11 -m venv .venv
    source .venv/bin/activate
    python -m pip install --upgrade pip setuptools wheel
    pip install -r requirements.txt
    
  3. Download the spacy model (needed for the Anchors notebook):

    python -m spacy download en_core_web_sm
    
  4. Open the Jupyter notebooks:

    jupyter notebook
    

Contributing

Contributions are welcome! If you'd like to add new examples, enhance existing ones, or suggest additional XAI frameworks to include, please submit a pull request or open an issue.

Related Skills

View on GitHub
GitHub Stars26
CategoryEducation
Updated2mo ago
Forks4

Languages

Jupyter Notebook

Security Score

75/100

Audited on May 10, 2026

No findings