界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

interpretation-and-visualization

interpretation-and-visualization

【设计与创意】Guides braindecode Captum attribution, frequency gradients, channel topomaps, metrics, and headless visualization for electrophysiology models.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: interpretation-and-visualization description: "Guides braindecode Captum attribution, frequency gradients, channel topomaps, metrics, and headless visualization for electrophysiology models." disable-model-invocation: true metadata: disco-role: operating license: BSD 3-Clause

Interpretation and visualization

Use this route for saliency or integrated-gradient maps, layer GradCAM, frequency-domain amplitude gradients, topomaps, confusion/metric plots, or model sanity checks.

Workflow

  1. Put the model in evaluation mode and confirm input shape (batch, channels, time), target indices, device, and differentiability. Keep a cloned leaf tensor for attribution.
  2. Use Captum wrappers for input-space methods and detach results before NumPy or plotting. Match target batch length and preserve channel/time axes.
  3. Use amplitude_gradients for frequency analysis and interpret bins using the actual sampling rate and FFT convention. Validate with a tiny known filter before analyzing a large model.
  4. For topomaps, require a montage or non-zero channel positions and a channel order matching the model input. Select a non-interactive plotting backend in headless jobs.
  5. Save figures and arrays to explicit writable paths; do not use visualization as evidence of causal importance without stability checks.

Read API reference, workflows, and troubleshooting. Run the local interpretation smoke to check gradient and frequency behavior without downloads or a display server. Captum is optional; install the visualization extra only for Captum methods.

我的收藏