Skip to content
Back to skills

Data Preparation

ASecurity

Route CSV, LIBSVM, TFRecords, and iris fixture questions.

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

Works with

  • cli

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 data-preparation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Preparation?

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

Security grade badge for Data Preparation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-data-preparation-6928f8b5/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-data-preparation-6928f8b5)

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-preparation"
description: "Route CSV, LIBSVM, TFRecords, and iris fixture questions."
metadata:
  disco-role: operating
disable-model-invocation: true
license: Apache 2.0
---

# Data Preparation

Use this sub-skill for:

- dense CSV conversion with a configurable label position and label type
- sparse LIBSVM conversion with `id:value` pairs
- TFRecords inspection for dense or sparse `tf.train.Example` schemas
- tiny iris CSV fixtures generated from `sklearn`
- DICOM conversion caveats when the external labels file is missing

## Route elsewhere

- Model training, export, inference, checkpoints, or TensorBoard -> `../training-and-export/SKILL.md`
- Serving requests or client payloads -> `../serving-and-clients/SKILL.md`

## Bundled helpers

- `scripts/convert_csv_to_tfrecords.py`
- `scripts/convert_libsvm_to_tfrecords.py`
- `scripts/inspect_tfrecords.py`
- `scripts/create_iris_csv_fixture.py`

## Canonical rules

- Dense CSV defaults to features first and label last. Use `--label-position first` only for legacy label-first files.
- Sparse LIBSVM keeps the label first, followed by `id:value` tokens.
- Dense TFRecords store `label` plus a float list named `features`.
- Sparse TFRecords store `label` plus `ids` and `values`.
- If a TFRecord does not match the chosen schema, treat that as a schema error instead of printing empty fields.
- The iris fixture comes from local `sklearn.datasets.load_iris()`; it does not download anything.
- DICOM conversion is reference-only here because the source workflow depends on `pydicom` and an external labels CSV that is not present in this checkout.

## Read next

- `references/data-formats.md`
- `references/workflows.md`
- `references/troubleshooting.md`

Files in this skill

  • SKILL.md1.7 KB
  • references/data-formats.md2.5 KB
  • references/troubleshooting.md2.7 KB
  • references/workflows.md2.1 KB
  • scripts/convert_csv_to_tfrecords.py3.2 KB
  • scripts/convert_libsvm_to_tfrecords.py3 KB
  • scripts/create_iris_csv_fixture.py3.9 KB
  • scripts/inspect_tfrecords.py4.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.