跳到正文
cccskills
免费在 GitHub 公开

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.

中文简介正在准备中。当前显示原文说明。

集成工具Hugging Face
查看安装方法

包含的文件(27)

  • SKILL.md3.4 KB
  • references/api-surface.md3.2 KB
  • references/repo-provenance.md1.0 KB
  • references/repo-routing-metadata.json476 B
  • references/troubleshooting.md2.4 KB
  • scripts/datasets_api_smoke.py1.4 KB
  • sub-skills/features-formats/references/format-loaders.md7.3 KB
  • sub-skills/features-formats/references/schema-and-features.md7.4 KB
  • sub-skills/features-formats/references/troubleshooting.md6.6 KB
  • sub-skills/features-formats/scripts/feature_schema_smoke.py5.7 KB
  • sub-skills/features-formats/SKILL.md2.9 KB
  • sub-skills/loading-local-hub/references/api-reference.md6.8 KB
  • sub-skills/loading-local-hub/references/loading-workflows.md6.6 KB
  • sub-skills/loading-local-hub/references/troubleshooting.md5.5 KB
  • sub-skills/loading-local-hub/scripts/create_local_loading_fixture.py3.4 KB
  • sub-skills/loading-local-hub/SKILL.md3.1 KB
  • sub-skills/processing-streaming/references/api-reference.md8.1 KB
  • sub-skills/processing-streaming/references/processing-workflows.md8.0 KB
  • sub-skills/processing-streaming/references/troubleshooting.md6.1 KB
  • sub-skills/processing-streaming/scripts/processing_smoke.py4.4 KB
  • sub-skills/processing-streaming/SKILL.md3.3 KB
  • sub-skills/sharing-cli-cache/references/cli-cache-reference.md6.9 KB
  • sub-skills/sharing-cli-cache/references/sharing-and-hub.md6.7 KB
  • sub-skills/sharing-cli-cache/references/troubleshooting.md7.4 KB
  • sub-skills/sharing-cli-cache/scripts/cli_cache_smoke.py3.2 KB
  • sub-skills/sharing-cli-cache/scripts/dataset_card_minimal.md1.5 KB
  • sub-skills/sharing-cli-cache/SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Hugging Face Datasets

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.

Start Here

  • Install the package with 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.
  • Run python -c "from datasets import Dataset, load_dataset; print(Dataset.from_dict({'x':[1]}))" for a minimal import/API smoke check.
  • Use load_dataset(...) for Hub datasets, local files, local dataset repositories, and packaged format builders.
  • Use Dataset.from_dict, Dataset.from_list, Dataset.from_pandas, or Dataset.from_generator when data already exists in Python.

Route by Task

  • Load datasets from the Hub, local files/directories, Python objects, generators, packaged modules, or disk snapshots with sub-skills/loading-local-hub/SKILL.md.
  • Transform, filter, batch, split, shuffle, stream, format, combine, or convert datasets with sub-skills/processing-streaming/SKILL.md.
  • Define 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.
  • Push datasets to the Hub, create dataset cards, use datasets-cli, manage cache/offline mode, or diagnose filesystem/storage issues with sub-skills/sharing-cli-cache/SKILL.md.

Shared References and Scripts

  • Read references/api-surface.md for the verified top-level API map and the most important signatures.
  • Read references/troubleshooting.md for cross-cutting install, import, optional dependency, auth, cache, and workflow routing failures.
  • Read references/repo-provenance.md when checking whether this skill is stale relative to a Datasets checkout.
  • Run scripts/datasets_api_smoke.py --help for a safe local smoke helper that verifies import, core APIs, tiny in-memory processing, and CLI availability.

Common Decisions

  • Prefer explicit data_files, split, and features when automatic local file inference would be ambiguous.
  • Use streaming=True for large or remote data that should not be fully downloaded; route downstream iterable semantics to processing-streaming.
  • Use decode=False for media columns when optional decoders are unavailable or when you only need paths/bytes metadata.
  • Do not put tokens in code, logs, dataset cards, or generated examples; pass tokens through normal Hugging Face auth mechanisms.
  • Treat delete_from_hub and push_to_hub as state-changing operations; dry-run the plan and confirm repo IDs/config names before running them.

Validation Pattern

  1. Confirm the package imports and the relevant optional dependency is installed.
  2. Build or load a tiny representative dataset first.
  3. Declare Features when schema inference is risky.
  4. Run the intended map/filter/cast/format operation on a tiny subset.
  5. Save, reload, or push only after the local smoke path behaves as expected.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题