Skip to content
Back to skills

Augmentation And Sampling

ASecurity

"Guides braindecode signal transforms, composed augmentation

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
testingapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill augmentation-and-sampling --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Augmentation And Sampling?

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

Security grade badge for Augmentation And Sampling
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-augmentation-and-sampling/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-augmentation-and-sampling)

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: augmentation-and-sampling
description: "Guides braindecode signal transforms, composed augmentation
  loaders, and sequence, relative-positioning, and self-supervised samplers with
  shape-safe validation."
disable-model-invocation: true
metadata:
  disco-role: operating
license: BSD 3-Clause
---

# Augmentation and sampling

Use this route when augmentations, `Transform` composition,
`AugmentedDataLoader`, `n_augmentation`, sequence sampling, relative
positioning, or self-supervised sampling is the main task.

## Workflow

1. Confirm batches are `(X, y)` with `X` shaped `(batch, channels, time)` and
   that labels remain aligned after each transform.
2. Build a `Transform` or `Compose` with an explicit probability and random
   state. Test it on one batch and verify shape, dtype, device, and label
   invariants.
3. Use `AugmentedDataLoader` for training batches. Remember that
   `n_augmentation=0` preserves the original batch; positive values append
   transformed copies after clean originals and tile labels accordingly.
4. Choose sequence/relative-positioning/self-supervised samplers only when the
   dataset contains the required trial/session/window metadata. Verify indices
   and split boundaries before training.
5. Use CPU first. Move both model and batches to CUDA only after a bounded
   allocation succeeds; a CUDA availability flag is not a memory guarantee.

Read [API reference](references/api-reference.md), [sampling workflows](references/sampling-workflows.md),
and [troubleshooting](references/troubleshooting.md). Run the deterministic
[augmentation smoke](scripts/smoke_augmentation.py), which uses a local
`TensorDataset` and no network or credentials.

Files in this skill

  • SKILL.md1.7 KB
  • references/api-reference.md933 B
  • references/sampling-workflows.md1.1 KB
  • references/troubleshooting.md1.1 KB
  • scripts/smoke_augmentation.py1.5 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.