技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
datasets【数据与研究】Use this skill when working with Hugging Face Datasets: loading local or Hub datasets, defining Features schemas, processing/streaming datasets, converting formats, sharing to the Hub, managing cache/offline behavior, or using datasets-cli.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this repo skill for practical work with the datasets Python package. It is self-contained guidance distilled from the Datasets source, docs, tests, and verified public API surface.
pip install datasets; add extras only for workflows that need them, such as datasets[audio], datasets[vision], datasets[pdfs], datasets[nibabel], or ML framework packages.python -c "from datasets import Dataset, load_dataset; print(Dataset.from_dict({'x':[1]}))" for a minimal import/API smoke check.load_dataset(...) for Hub datasets, local files, local dataset repositories, and packaged format builders.Dataset.from_dict, Dataset.from_list, Dataset.from_pandas, or Dataset.from_generator when data already exists in Python.sub-skills/loading-local-hub/SKILL.md.sub-skills/processing-streaming/SKILL.md.Features, cast columns, troubleshoot schemas, and work with CSV/JSON/Parquet/Arrow/text/image/audio/video/PDF/NIfTI/mesh formats with sub-skills/features-formats/SKILL.md.datasets-cli, manage cache/offline mode, or diagnose filesystem/storage issues with sub-skills/sharing-cli-cache/SKILL.md.references/api-surface.md for the verified top-level API map and the most important signatures.references/troubleshooting.md for cross-cutting install, import, optional dependency, auth, cache, and workflow routing failures.references/repo-provenance.md when checking whether this skill is stale relative to a Datasets checkout.scripts/datasets_api_smoke.py --help for a safe local smoke helper that verifies import, core APIs, tiny in-memory processing, and CLI availability.data_files, split, and features when automatic local file inference would be ambiguous.streaming=True for large or remote data that should not be fully downloaded; route downstream iterable semantics to processing-streaming.decode=False for media columns when optional decoders are unavailable or when you only need paths/bytes metadata.delete_from_hub and push_to_hub as state-changing operations; dry-run the plan and confirm repo IDs/config names before running them.Features when schema inference is risky.