Skip to content
Back to skills

Encoding Training

ASecurity

"Route spike encoding, surrogate gradients, training helpers,

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill encoding-training --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Encoding Training?

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

Security grade badge for Encoding Training
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-encoding-training/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-encoding-training)

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: encoding-training
description: "Route spike encoding, surrogate gradients, training helpers,
  losses, monitors, quantization, STDP, and backprop-wrapper questions."
metadata:
  disco-role: operating
disable-model-invocation: true
license: MIT
---

# encoding-training

Use this sub-skill for workflows that start with raw tensors or labels and end with spike-coded data, a training step, or output/gradient inspection.

## Ask this sub-skill about
- `spikegen` encodings: rate, latency, delta, and target coding
- surrogate gradients for neuron `spike_grad`
- loss and accuracy helpers in `snntorch.functional`
- `utils.reset`, `data_subset`, and `valid_split`
- backprop wrappers: `BPTT`, `TBPTT`, `RTRL`
- monitors for spikes, inputs, attributes, and gradients
- `functional.quant.state_quant`
- `functional.stdp_learner.STDPLearner`

## Route elsewhere
- neuron definitions and reset semantics in detail -> core-neurons
- NIR export/import -> nir-interoperability
- raster plots, animations, and spike histograms -> plotting
- legacy spikevision datasets -> spikevision

## Start here
1. `references/workflows.md`
2. `references/api-reference.md`
3. `references/troubleshooting.md`

## Bundled smoke helpers
- `scripts/spike_encoding_smoke.py`
- `scripts/synthetic_bptt_smoke.py`
- `scripts/shape_mismatch_diagnostic.py`
- `scripts/stdp_smoke.py`

## Import reminders
- Use `import snntorch.functional as SF` for accuracy, losses, regularization, and probes.
- Import quantization and STDP helpers from their submodules:
  `from snntorch.functional import quant`
  `from snntorch.functional.stdp_learner import STDPLearner`
- There is no standalone `SF.metrics` namespace in this release; use `SF.accuracy_rate` and `SF.accuracy_temporal`.
- `backprop` is a compatibility layer and emits a deprecation warning.
- Call `utils.reset(net)` between sequences unless a wrapper already does it.
- `STDPLearner.reset()` is not reliable in this release; create a fresh learner when you need a clean STDP episode.

Files in this skill

  • SKILL.md2 KB
  • references/api-reference.md13.6 KB
  • references/troubleshooting.md4.7 KB
  • references/workflows.md7.8 KB
  • scripts/shape_mismatch_diagnostic.py1.7 KB
  • scripts/spike_encoding_smoke.py2.2 KB
  • scripts/stdp_smoke.py2 KB
  • scripts/synthetic_bptt_smoke.py2.6 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…