time-series
Use AIX360 TSICE, TSLime, and TSSaliency for local numeric explanations of univariate or multivariate time-series models, including temporal perturbations, relevant history, exogenous inputs, and integrated-gradient saliency.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- time-series
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Use AIX360 TSICE, TSLime, and TSSaliency for local numeric explanations of univariate or multivariate time-series models, including temporal perturbations, relevant history, exogenous inputs, and integrated-gradient saliency.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md9.7 KB
- 参考文档references/data-formats.md6.5 KB
- 参考文档references/troubleshooting.md7.4 KB
- 参考文档references/workflows.md8.4 KB
03 SKILL.md 正文
Time-Series Local Explanations
Use this sub-skill for AIX360 0.3.0 local explanations over an ordered history window. It covers:
- TSLime: perturb the history, fit a local linear surrogate, and return time/feature weights.
- TSSaliency: estimate temporal and variate contributions along a path from a base signal using a model-agnostic Monte Carlo gradient.
- TSICE: perturb a selected time window and relate derived time-series features to changes in a multi-step forecast.
tsFrame,to_np_array, model wrappers, perturbation engines, and numeric interpretation. Plotting is optional and is not part of the explanation contract.
Route here when
Choose this skill when the request mentions TSICE, TSLime, TSSaliency, temporal saliency, integrated gradients, relevant history, perturbation windows, exogenous time-series variables, or time-series attribution. Read the API reference, data-format contract, and the relevant section of workflows before running an explainer.
Route elsewhere
- Generic tabular, text, or image LIME/SHAP: use local-black-box.
- Dataset download or packaging: use datasets-and-metrics. For offline explanation tests, construct an in-memory fixture instead.
- CEM, certification, or recourse: use counterfactual-and-certification.
Operating contract
- Normalize first. Represent a window as a pandas
DataFramewith one row per time step, one numeric column per variate, and aDatetimeIndex(atsFrame). A NumPy input must be two-dimensional(time, features)before conversion. Preserve column order and use the same order forfeature_namesand model reshaping. - Fix the axes. Record
input_length=T, feature countF, and, for TSICE,forecast_lookahead=H,n_variables=F_out, and the exogenous count. TSLime accepts at leastTrows and uses the lastT; TSSaliency requires exactlyT; TSICE accepts at leastTand uses the lastT. - Adapt the callable. Prefer a callable that handles batch arrays and
returns one numeric target per sample. TSLime and TSSaliency are single-
output explainers; aggregate a multi-output model before calling them.
TSICE instead expects each call to return
(H, n_variables)(or a length-H vector for one output). See data formats. - Select perturbations deliberately. Start with one small
block-bootstrapengine. Add frequency, moving-average, shift, or impute engines only when their data assumptions fit the domain. Set a seed and use a small perturbation count for a smoke test; perturbation count multiplies model calls. - Run numeric explanation before plotting. Inspect keys and shapes, compare the instance and base predictions, and check that weights/saliency are aligned to the intended window. A plot is a presentation layer, not a verification gate. Plotting failures must not invalidate numeric output.
- Keep experiments offline by default. Do not invoke
SunspotDataset,FordDataset, orClimateDatasetmerely to demonstrate the explainers: their constructors can download data. Use a deterministic tiny NumPy fixture and a local callable; see workflows.
Choose the explainer
| Need | Use | Main numeric result |
|---|---|---|
| Local sensitivity over recent time/feature cells | TSLimeExplainer |
history_weights with shape (relevant_history, F) |
| Temporal/variate attribution relative to a base signal | TSSaliencyExplainer |
saliency with shape (T, F) |
| Forecast response to structured changes in a time window | TSICEExplainer |
perturbation responses, feature statistics, and forecast deltas |
For exact constructors, return shapes, perturbation configuration, and wrapper behavior, use api-reference.md. For failures, use troubleshooting.md rather than silently reshaping an input or output.
Interpretation guardrails
- A positive TSLime weight means the local surrogate associates increasing that cell with increasing the selected scalar model response; it is local and perturbation-distribution dependent, not a causal effect.
- A positive TSSaliency value is a positive contribution under the chosen base signal and approximate path integral. Magnitude is comparable across cells only after considering feature scales and the same base/configuration.
- TSICE
signed_impactis the average forecast change for one perturbation andtotal_impactis a non-negative average RMS change. The output is a sampled response cloud indexed by derived statistics, not a guaranteed per-feature coefficient. - For multi-step or multi-variable forecasts, always state whether a summary averages horizons/variables. A scalar summary can hide cancellation.
Do not use these explainers as certification, recourse, or counterfactual proof. Do not claim that a heatmap is an attribution result unless its numeric source and axes have been checked.
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).