Ce integration compare

From Moffran/calibrated_explanations · View interactive version

Ce integration compare is an AI agent skill from the GitHub repository Moffran/calibrated_explanations. Guide CE integration with SHAP and LIME, compare explanation outputs, and configure the calibrated-explanations integration adapters.

How to use this skill

Skill file

CE Integration Compare

You are helping users work with the CE integrations for SHAP and LIME.

Required references

Use this skill when

feature-attribution methods.

Key concepts

CE vs. feature attribution methods

Calibrated explanations provide **rule-based explanations with calibrated

uncertainty intervals. SHAP and LIME provide feature attribution values**

(importance scores per feature). The approaches are complementary:

confidence.

Integration architecture

The integration modules provide adapter classes that:

  1. Wrap a fitted CE explainer to produce SHAP-compatible or LIME-compatible

outputs.

  1. Allow side-by-side comparison of CE rules with feature attributions.
  2. Preserve CE calibration semantics while exposing familiar interfaces.

Workflow

  1. Fit and calibrate a CE pipeline first (use ce-pipeline-builder).
  2. Import the integration adapter:

```python

from calibrated_explanations.integrations.shap import CESHAPAdapter

# or

from calibrated_explanations.integrations.lime import CELIMEAdapter

```

  1. Generate comparison explanations using both CE and the adapter.
  2. Interpret the results: CE rules for conditions, SHAP/LIME values for

attribution magnitudes.

Constraints

must be properly configured.

are comparison tools.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.