Agent skill
ce-integration-compare
Guide CE integration with SHAP and LIME, compare explanation outputs, and configure the calibrated-explanations integration adapters.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/ce-integration-compare
SKILL.md
CE Integration Compare
You are helping users work with the CE integrations for SHAP and LIME.
Required references
src/calibrated_explanations/integrations/shap.pysrc/calibrated_explanations/integrations/lime.pysrc/calibrated_explanations/integrations/__init__.py
Use this skill when
- A user asks how to use CE with SHAP or LIME.
- Comparing CE explanations with SHAP/LIME outputs.
- Configuring or debugging the integration adapters.
- Understanding the differences between calibrated explanations and 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:
- CE rules tell you which conditions justify a prediction with calibrated confidence.
- SHAP/LIME tell you how much each feature contributed to the prediction.
Integration architecture
The integration modules provide adapter classes that:
- Wrap a fitted CE explainer to produce SHAP-compatible or LIME-compatible outputs.
- Allow side-by-side comparison of CE rules with feature attributions.
- Preserve CE calibration semantics while exposing familiar interfaces.
Workflow
- Fit and calibrate a CE pipeline first (use
ce-pipeline-builder). - Import the integration adapter:
python
from calibrated_explanations.integrations.shap import CESHAPAdapter # or from calibrated_explanations.integrations.lime import CELIMEAdapter - Generate comparison explanations using both CE and the adapter.
- Interpret the results: CE rules for conditions, SHAP/LIME values for attribution magnitudes.
Constraints
- Always fit and calibrate the CE pipeline before using integration adapters.
- Integration adapters are convenience wrappers; the underlying CE explainer must be properly configured.
- Do not use integration adapters as replacements for CE explanations; they are comparison tools.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?