datasets-readers
БесплатноБез исполняемых скриптовНе проверенBuild Nitrain datasets from files, CSV/TSV columns, folder labels, in-memory data, example fixtures, and Google Cloud inputs.
от lza6★ 19 звёзд на GitHubОб этом скилле
Datasets and readers
Use this sub-skill when a user needs to turn imaging files or tabular labels
into a nitrain.Dataset, infer a reader from nested Python objects, load the
built-in example fixture, or connect a dataset to Google Cloud storage.
What belongs here
Datasetcreation from local filesystem paths or in-memory objects.- Reader selection for image files, CSV/TSV columns, folder names, nested reader composition, and automatic inference.
fetch_data('example-01')and the local tiny fixture it creates.GoogleCloudDatasetand reader behavior that depends on cloud storage.
What does not belong here
- Transforms, samplers,
Loader, or Keras batching: usesub-skills/preprocessing-and-loading/. - Architectures, trainers, pretrained weights, or framework training logic: use
sub-skills/models-training/. - Prediction and explanation post-processing: use
sub-skills/prediction-and-explanation/.
Typical user requests
- "Build a dataset from images and participants.csv"
- "Read labels from folder names"
- "Infer readers from nested lists or dictionaries"
- "Create the example-01 fixture"
- "Use GoogleCloudDataset for a bucket-backed dataset"
Working pattern
- Decide whether the input source is local files, in-memory data, or Google Cloud storage.
- Pick the smallest reader that matches the data shape.
- Use
base_dirfor directory-relative files andbase_filefor CSV/TSV columns. - Use
infer_reader()when the user already has nested lists, arrays, or dictionaries and does not want to spell out reader classes manually. - Keep output labels explicit so later transforms and samplers can route by name.
Read these references
- references/api-reference.md for verified constructor signatures and return behavior.
- references/workflows.md for canonical dataset-building patterns and example snippets.
- references/troubleshooting.md for missing files, mismatched lengths, malformed patterns, and GCS credential issues.
Smoke check
After installing dependencies, run the bundled helper scripts/check_install.py:
python scripts/check_install.py --mode datasets
Use this when you want to confirm the reader and dataset surface before moving on to preprocessing or training.
Key decision points
- Use
ImageReaderfor file patterns that should resolve to ANTs images. - Use
ColumnReaderfor scalar labels or image paths stored in a table. - Use
FolderNameReaderwhen folder names carry labels or classes. - Use
MemoryReaderwhen data is already in memory. - Use
ComposeReaderfor multiple inputs that should stay aligned. - Use
GoogleCloudDatasetonly when bucket access and credentials are real.
Common outcomes
Dataset.__getitem__returns(x, y)pairs, and slices return sequences.Dataset.split()returns train/test or train/test/val partitions.ImageReader,ColumnReader,FolderNameReader, andMemoryReaderall supportselect()for subset reuse.
Watch for these signals
- "No file found" or "No filepaths found" usually means the pattern, base path, or exclude filter is wrong.
- Length mismatch warnings mean the reader mappings did not align.
- GCS failures usually come from credentials or object-path errors, not from the core Nitrain API.
Before handing off
If the request grows into sampling, augmentation, batching, or model training, hand off to the relevant sibling sub-skill instead of expanding this one.
Установить datasets-readers в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл datasets-readers?
Build Nitrain datasets from files, CSV/TSV columns, folder labels, in-memory data, example fixtures, and Google Cloud inputs.
Как установить скилл datasets-readers?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл datasets-readers запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic