aix360
Routes AIX360 explainability tasks across local black-box attribution, counterfactuals and certification, interpretable models, time-series explanations, datasets, and explanation-quality metrics.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- aix360
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes AIX360 explainability tasks across local black-box attribution, counterfactuals and certification, interpretable models, time-series explanations, datasets, and explanation-quality metrics.
- disable-model-invocation
- true
02 资源文件 5
- 参考文档references/api-overview.md4.6 KB
- 参考文档references/repo-provenance.md1.7 KB
- 参考文档references/repo-routing-metadata.json312 B
- 参考文档references/troubleshooting.md5.7 KB
- 脚本scripts/check_environment.py3.8 KB
03 SKILL.md 正文
AIX360
Use this repository skill for AI Explainability 360 (aix360) workflows over
tabular, text, image, and time-series data. It covers package version 0.3.0,
including modern CPU-usable routes and explicit boundaries around historical
TensorFlow/Keras and other optional dependency stacks.
AIX360 is a toolkit, not one universal explainer. First identify:
- whether the artifact to explain is data, an already-trained black-box model, or a directly interpretable model to fit;
- whether the requested result is local, global, counterfactual, certified, or a quality metric;
- the input domain and model-callable output shape;
- constraints on actions, downloads, hardware, latency, and optional packages.
Installation and inspection
Use an isolated environment because AIX360 extras pin mutually incompatible versions for some algorithm families.
python -m pip install aix360
python -c "import aix360; from importlib.metadata import version; print(version('aix360'))"
Install only the extra for the chosen workflow, for example:
python -m pip install 'aix360[lime]'
python -m pip install 'aix360[tslime]'
python -m pip install 'aix360[rbm]'
Do not install every extra into one environment. In particular, CEM/ProfWeight and historical SHAP paths pin TensorFlow 1.14 with Keras 2.3.1, whereas nearest-neighbor contrastive pins TensorFlow 2.9.3; keep incompatible families in separate environments. Read installation and runtime troubleshooting before changing versions.
Run the bundled environment diagnostic to inspect the base package and selected optional modules without downloading data or models.
Route by task
Local black-box attribution and examples
Read local-black-box for LIME, SHAP, Grouped Conditional Expectation, nearest-neighbor contrastive examples, faithfulness, monotonicity, prediction-callable contracts, feature names, and local explanation output validation.
Typical signals: explain_instance, predict_proba, local feature weights,
SHAP values, tabular/text/image attribution, exemplar/nearest-neighbor
explanation, or local metric debugging.
Counterfactuals, recourse, certification, and matching
Read counterfactual-and-certification for CEM/CEM-MAF pertinent positives and negatives, Ecertify trust regions, GLANCE recourse/action costs, and order-constrained optimal-transport matching.
Typical signals: target class, actionable or immutable features, feature bounds,
recourse, robustness certificate, perturbation budget, OTMatchingExplainer, or
legacy CEM model setup.
Directly interpretable models, rules, and prototypes
Read interpretable-models for ProtoDash, Boolean/linear rule models, RIPPER/TRXF, interpretable model differencing, teaching explanations, and optional CoFrNet, DIPVAE, and ProfWeight workflows.
Typical signals: prototype selection, FeatureBinarizer, BRCG/GLRM, rule
induction, model comparison, explanation labels, directly interpretable
training, solver errors, graph export, or rule serialization.
Time-series explanations
Read time-series for TSICE, TSLime, and TSSaliency over univariate or multivariate histories, including forecast lookahead, relevant history, exogenous variables, perturbation windows, data shapes, and numeric-versus-plot output.
Typical signals: temporal attribution, integrated gradients, local surrogate, forecast window, time axis, feature axis, perturbation count, or exogenous series alignment.
Datasets, preprocessing, and explanation metrics
Read datasets-and-metrics for AIX360 dataset constructors, local data layout, offline checks, preprocessing, and Faithfulness/Monotonicity metrics.
Typical signals: HELOC, COMPAS, CDC, MEPS, Ford, Sunspots, CIFAR, MNIST, CelebA, e-SNLI, missing dataset paths, downloads, coefficient alignment, or explanation-quality evaluation.
Cross-route decisions
- Use dataset and metric guidance as support for any algorithm route, but keep explainer construction with the algorithm-owning sub-skill.
- Prefer a callable whose batch input and output shape are explicit; many local explainers fail because a classifier returns labels instead of probabilities or a time-series forecaster drops its batch axis.
- Treat notebook-scale image training, remote datasets, pretrained weights, and graph rendering as opt-in operations. The bundled skill defaults to tiny, local, deterministic checks.
- Verify whether an explanation is local/global and post-hoc/direct before comparing methods. Their outputs are not interchangeable.
- A successful
import aix360proves only the base package. Import the selected algorithm module and run a tiny fixture before trusting an optional route.
Read API and method overview when the user names an algorithm but not its route. Read repository provenance before deciding whether this skill is stale for another checkout.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).