Skip to content
Back to skills

Components Metrics

ASecurity

"Guides SpeechBrain model components, decoders, losses, metric

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 9, 2026
toolspythonbash

Works with

  • cli

Security analysis

A100/100

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

Scanned September 9, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill components-metrics --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Components Metrics?

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

Security grade badge for Components Metrics
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-components-metrics/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-components-metrics)

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: components-metrics
description: "Guides SpeechBrain model components, decoders, losses, metric
  statistics, WER scoring, checkpoints, Pretrainer, streaming helpers, and
  component-level troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# SpeechBrain components and metrics

Use this sub-skill when the task is to choose, wire, debug, or test SpeechBrain neural components, decoders, metrics, checkpoints, pretrained-weight loading, streaming helpers, or scoring utilities.

## Route map

| Task | Read/run |
| --- | --- |
| Select neural modules, lobes, feature wrappers, decoders, or losses. | `references/components-and-decoders.md` |
| Save/recover checkpoints or load pretrained weights into modules. | `references/checkpoints-and-pretraining.md` |
| Compute WER/PER/CER, metric stats, classification/binary metrics, or scoring summaries. | `references/metrics-and-scoring.md`; run `scripts/compute_wer_cli.py`. |
| Work on streaming/chunked ASR or streaming feature wrappers. | `references/streaming.md` |
| Diagnose shape, checkpoint, metric, decoder, or streaming failures. | `references/troubleshooting.md` |

## Common component workflow

1. Keep model/module construction in HyperPyYAML when possible.
2. Use recipe `Brain` hooks to wire forward/objective/metric behavior.
3. Validate tensor shapes and relative lengths before decoder or metric calls.
4. Use `Checkpointer` for local experiment state and `Pretrainer` for fetching/loading pretrained model files.
5. Use metric stats classes inside `on_stage_start` / `compute_objectives` / `on_stage_end` patterns.

## Useful bundled script

```bash
python scripts/compute_wer_cli.py ref.txt hyp.txt --mode strict
```

The script is adapted from SpeechBrain's WER utility pattern and uses the installed package only.

Files in this skill

  • SKILL.md1.8 KB
  • references/checkpoints-and-pretraining.md2.8 KB
  • references/components-and-decoders.md2.6 KB
  • references/metrics-and-scoring.md2.4 KB
  • references/streaming.md2.5 KB
  • references/troubleshooting.md2 KB
  • scripts/compute_wer_cli.py2.9 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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.