Metadata-Version: 2.1
Name: xai-gpt-shap
Version: 1.0.0
Summary: A library for explainable AI with SHAP and GPT-based explanations.
Home-page: https://github.com/JanHuntersi/xai_gpt_shap
License: MIT
Author: (JanHuntersi) 
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: onnxruntime (>=1.20.1,<2.0.0)
Requires-Dist: openai (>=1.57.2,<2.0.0)
Requires-Dist: pandas (>=2.2.3,<3.0.0)
Requires-Dist: prompt-toolkit (>=3.0.43)
Requires-Dist: rich (>=13.7.0)
Requires-Dist: shap (>=0.46.0,<0.47.0)
Requires-Dist: tiktoken (>=0.8.0,<0.9.0)
Project-URL: Repository, https://github.com/JanHuntersi/xai_gpt_shap
Description-Content-Type: text/markdown

# xai-gpt-shap

**xai-gpt-shap** is a Python library for explainable AI (XAI) that combines **SHAP** (SHapley Additive exPlanations) value analysis with OpenAI GPT-based explanations to make machine learning model predictions more interpretable.

This library allows you to:
- Perform SHAP analysis on machine learning models.
- Generate role-specific explanations for SHAP results using OpenAI GPT (e.g., for beginners, analysts, or researchers).
- Interactively explore and understand SHAP results via a command-line interface (CLI).

---

## Key Features

- **SHAP Integration**: Calculate SHAP values for any machine learning model and dataset.
- **OpenAI GPT Integration**: Automatically explain SHAP results using OpenAI GPT with role-specific messages (e.g., beginner, analyst, executive summary).
- **Interactive Chat**: Engage in an interactive conversation with GPT to further explore results.
- **CLI Support**: Easily run SHAP analysis and explanations directly from the command line.

---

## Installation

Install the library using pip:
```bash
pip install xai-gpt-shap

