Skip to content
Back to skills

Data Training

ASecurity

"Route NeuroMANCER data preparation and CPU-first training

  • 247 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
developmentpythongobashnodeapi

Works with

  • api

Security analysis

A100/100

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

Scanned September 8, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Data Training?

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

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

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: data-training
description: "Route NeuroMANCER data preparation and CPU-first training
  workflows for dictionary, static, sequence, and graph data, including
  normalization, splitting, collation, Trainer, Lightning, callbacks, logging,
  and checkpoints."
disable-model-invocation: true
metadata:
  disco-role: operating
license: NOASSERTION
---

# Data and training

Use this sub-skill when a NeuroMANCER task starts with tensors/arrays and must
produce named batches, sequence windows, graph batches, or a bounded training
run. It is written for `neuromancer==1.5.6` and a CPU-first workflow.

## Route the request

- **Dictionary/static samples:** use `DictDataset` or `StaticDataset`, then a
  `DataLoader` with the dataset's `collate_fn`. See
  [API reference](references/api-reference.md) and
  [data formats](references/data-formats.md).
- **Time series or multiple trajectories:** use `SequenceDataset` directly or
  `get_sequence_dataloaders`; preserve the `*p`/`*f` key contract and validate
  `nsteps` before constructing windows.
- **Node/edge/graph batches:** use `GraphDataset` with precomputed graphs or
  its local radius-graph builder. Treat graph batching as a separate contract;
  do not silently substitute ordinary dictionary collation.
- **Optimization:** choose the base `Trainer` when explicit PyTorch loaders,
  callbacks, and a CPU device are desired. Choose `LitTrainer` when the
  `data_setup_function`/Lightning lifecycle, checkpoint callbacks, or custom
  Lightning hooks are desired. The two APIs are not interchangeable.

Follow [workflows](references/workflows.md) for the smallest safe setup. Keep
symbolic objectives/constraints in `symbolic-problems`, model and dynamics
construction in `dynamics-modeling`, and PSL/control rollouts in
`control-simulation`.

## Non-negotiable batch contract

1. Every sample-bearing tensor has the same first/sample axis before a dataset
   is built.
2. Every loader uses the owning dataset's `collate_fn`; it adds the `name`
   field consumed by NeuroMANCER problem outputs.
3. Split raw data before fitting normalization statistics. Apply train
   statistics to development and test data; do not use the convenience
   dataloader normalization path when that would leak held-out values.
4. Start with `device="cpu"` for `Trainer` or `accelerator="cpu"` for
   `LitTrainer`; CUDA and multi-device behavior is optional and unverified.
5. Keep development data named `dev` and training data named `train` when using
   `LitDataModule`.

## Validate before training

Run the bundled, side-effect-free smoke check from any working directory:

```bash
python scripts/data_smoke.py --help
python scripts/data_smoke.py --run
```

`--run` creates only tiny in-memory static, dictionary, and sequence fixtures;
it performs no training, network access, checkpointing, or writes. For failure
recovery and known source-version edge cases, use
[troubleshooting](references/troubleshooting.md).

Files in this skill

  • SKILL.md2.9 KB
  • references/api-reference.md11.2 KB
  • references/data-formats.md6.6 KB
  • references/troubleshooting.md7.1 KB
  • references/workflows.md7.2 KB
  • scripts/data_smoke.py3.3 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.