Skip to main content

A library for explainable AI with SHAP and GPT-based explanations.

Project description

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:

pip install xai-gpt-shap

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xai_gpt_shap-1.0.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xai_gpt_shap-1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file xai_gpt_shap-1.0.0.tar.gz.

File metadata

  • Download URL: xai_gpt_shap-1.0.0.tar.gz
  • Upload date:
  • Size: 9.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for xai_gpt_shap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c1c4ff245bdcddfed1e4bf794130672dce3e87e264bc0111ee8ff3f7de18845d
MD5 63a220b4aa58a92b947d86b2089c38f3
BLAKE2b-256 db6174692c4241fba7ebab77e976f15b3ad01ffc14a47e7a9d1dfdba15e227ff

See more details on using hashes here.

File details

Details for the file xai_gpt_shap-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: xai_gpt_shap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for xai_gpt_shap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7aa60c0c2d027263fa5d7f68a97ff0cd918b99dba592f11467d1abb55862ade
MD5 c4832bba0d9398268a3e241053eb17d0
BLAKE2b-256 961281312b7b0a17dc8c1949e42efa237b1590b1dc8157756bbc89c9e91541e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page