Skip to content
Back to skills

Interpretable Models

ASecurity

"Choose and operate AIX360's directly interpretable models, rule

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
dataapibackend

Works with

  • api

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill interpretable-models --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Interpretable Models?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Interpretable Models
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-interpretable-models/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-interpretable-models)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: interpretable-models
description: "Choose and operate AIX360's directly interpretable models, rule
  learners, prototypes, model differencing, teaching explanations, and optional
  neural interpretable methods."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# Interpretable models

Use this skill when the request is for a model whose prediction mechanism is
itself inspectable, a compact prototype set, an explicit rule list, a
comparison of two models, a label-plus-teaching explanation, or a conceptual
neural interpretability method. This skill covers AIX360 0.3.0 APIs and their
optional dependency boundaries.

## Route before coding

- **Explain an already trained black box with LIME, SHAP, GroupedCE, or a
  neural contrastive method:** route to `../local-black-box/SKILL.md`.
- **CEM, recourse, certification, or optimal transport:** route to
  `../counterfactual-and-certification/SKILL.md`.
- **Time-series explainers:** route to `../time-series/SKILL.md`.
- **Dataset loading, preprocessing, or metric contracts:** route to
  `../datasets-and-metrics/SKILL.md`.

Do not call a rule learner an explainer of an existing model: BRCG, GLRM,
RIPPER, CoFrNet, and TED fit a predictive mechanism from labeled data. IMD
consumes outputs from two already-fitted models. ProtoDash selects exemplars
from a candidate set and can summarize data or support a local comparison.
DIPVAE edits a learned latent generative model. ProfWeight trains a simpler
model using confidence-derived sample weights.

## Operating sequence

1. State the object being produced: prototypes, binary/regression rule model,
   DNF rules, model-difference regions, label/explanation pair, or a latent or
   confidence-profile model.
2. Freeze the training schema. Keep column names and ordering stable; retain
   the fitted `FeatureBinarizer`/`FeatureBinarizerFromTrees` for every later
   transform. Decide how missing values are represented before fitting.
3. Select the smallest dependency family in
   [api-reference.md](references/api-reference.md). Treat optional legacy
   families as unavailable unless their imports and versions are proven.
4. Fit only on training data, then predict or explain on a separately
   transformed/evaluated set. Check output shape, labels/classes, feature names,
   and rule count before interpreting the result.
5. Save a portable semantic summary (rule strings, prototype source indices and
   weights, diff regions, or latent edit settings), not an opaque live object.
6. Report accuracy/coverage or other metrics separately from readability. A
   compact model is not automatically faithful to another model.

## Fast choices

- **Prototype selection:** `ProtodashExplainer.explain(X, Y, m, ...)` returns
  `(weights, indices, objective_history)`; `Y` is the candidate pool and `X`
  is the data being summarized/explained.
- **Binary rule classifier:** binarize a pandas frame, fit
  `BooleanRuleCG` through `BRCGExplainer`, then call `predict` and `explain`.
- **Interpretable regression/classification:** use `LinearRuleRegression` or
  `LogisticRuleRegression` through `GLRMExplainer`; call `predict` (and
  `predict_proba` for logistic) and inspect the coefficient DataFrame.
- **Native rule induction:** fit `RipperExplainer` on a pandas `DataFrame` and
  `Series`, with `target_label` for a binary positive class; call `explain()`
  for a TRXF `DnfRuleSet`.
- **Model differencing:** obtain aligned predictions from two classifiers on
  the same pandas frame, fit `IMDExplainer.fit(X, y1, y2, max_depth=...)`, and
  inspect `diffrules`, `diffregions`, and `metrics`.
- **Teaching explanations:** fit `TED_CartesianExplainer(base_estimator)` on
  `(X, Y, E)` where explanation ids are dense non-negative integers; use
  `predict_explain`, `predict`, and `explain`.
- **Optional neural methods:** use CoFrNet for continued-fraction network
  structure, DIPVAE for latent edits, and ProfWeight for confidence-profile
  weighted simple models only after their backend environments are validated.

## Hard safety checks

- `FeatureBinarizerFromTrees.fit` requires `y`, rejects NaN/None during fit,
  and its transform schema is learned from selected input features. A missing
  selected column is a schema error, not a signal to silently impute.
- `BRCG` solves LPs and can emit no useful clauses; inspect `w`, `z`, and the
  `rules` list rather than assuming a non-empty explanation.
- ProtoDash weights are non-negative but unnormalized; zero, repeated, or
  numerically unstable weights need a smaller candidate set, finite scaled
  inputs, or the alternate optimizer.
- TRXF predicates use `Feature`, `Predicate`, `Conjunction`, and `DnfRuleSet`.
  Preserve typed values and operators when serializing; do not use `repr` as a
  persistence format.
- Do not promise compatibility for legacy TensorFlow/Keras 1.x ProfWeight or
  the optional PyTorch CoFrNet/DIPVAE code from a modern environment without a
  separate probe. See [troubleshooting.md](references/troubleshooting.md).

For concrete call signatures, output contracts, dependency boundaries, and
recovery procedures, read the four bundled references. The tiny smoke helper
is at `scripts/feature_binarizer_smoke.py` and is safe to run locally with
`--help` before running it.

Files in this skill

  • SKILL.md5.2 KB
  • references/api-reference.md13.8 KB
  • references/model-overview.md6.5 KB
  • references/troubleshooting.md9.9 KB
  • references/workflows.md7.7 KB
  • scripts/feature_binarizer_smoke.py5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.