Skip to content
Back to skills

Anchors Local Explanations

ASecurity

"Routes Alibi requests for AnchorTabular, AnchorText, and

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolsgoapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill anchors-local-explanations --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Anchors Local Explanations?

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

Security grade badge for Anchors Local Explanations
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-anchors-local-explanations/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-anchors-local-explanations)

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: anchors-local-explanations
description: "Routes Alibi requests for AnchorTabular, AnchorText, and
  AnchorImage workflows, including sampling, segmentation, and
  precision/coverage troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Anchors for Local Explanations

Use this sub-skill when a user wants an anchor rule that explains a specific prediction on tabular data, text, or images.

## Trigger phrases

Open this sub-skill when the user mentions:

- anchors or anchor rules
- AnchorTabular, AnchorText, or AnchorImage
- precision, coverage, beam search, or `threshold`
- text sampling strategies such as `unknown`, `similarity`, or `language_model`
- image segmentation, superpixels, or custom `segmentation_fn`

## What this sub-skill owns

- `AnchorTabular`
- `AnchorText`
- `AnchorImage`
- the text sampling helpers and image-segmentation guidance needed to use them

## What it does not own

- SHAP or integrated gradients
- counterfactual methods
- confidence scores or prototype selection
- save/load guidance

## Read next

- `references/workflows.md` for the tabular / text / image route map
- `references/api-reference.md` for the verified AnchorTabular, AnchorText, and AnchorImage signatures
- `references/anchor-text.md` for text-specific sampling details
- `references/troubleshooting.md` for input-shape and dependency failures
- `scripts/check_spacy_model.py` before using a text anchor workflow
- `scripts/smoke_anchor_tabular.py` and `scripts/smoke_anchor_image.py` for safe CPU smokes

## Typical flow

1. Decide whether the anchor is tabular, text, or image.
2. Make sure the predictor accepts the input type the method expects.
3. For tabular data, fit the explainer on a representative training set.
4. For text, decide whether `nlp` or `language_model` sampling is the right perturbation strategy.
5. For images, choose a segmentation strategy that returns sensible superpixels.
6. Use the smoke scripts on tiny synthetic inputs before trying a larger example.

## Good fits

- local explanations for a single prediction
- a rule-based explanation with high precision and explicit coverage
- tabular, text, or image workflows where the user wants human-readable conditions

## Common failure signals

- the predictor is not batched or does not accept the right input type
- AnchorTabular was not fitted before `explain`
- AnchorText is missing a spaCy model or the `language_model` path is not installed
- image segmentation returns the wrong shape or type
- the result is empty or far too long because the instance sits near a decision boundary

Files in this skill

  • SKILL.md2.6 KB
  • references/anchor-text.md1.4 KB
  • references/api-reference.md1.9 KB
  • references/troubleshooting.md2.2 KB
  • references/workflows.md2.2 KB
  • scripts/check_spacy_model.py1.3 KB
  • scripts/smoke_anchor_image.py1.4 KB
  • scripts/smoke_anchor_tabular.py941 B

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.