技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-loading【数据与研究】Load, inspect, split, decode, benchmark, and troubleshoot existing TensorFlow Datasets datasets.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is to consume an existing TensorFlow Datasets (TFDS) dataset: inspect metadata, select splits, load tf.data.Dataset objects, create NumPy/Python data sources, customize decoding, visualize examples, benchmark iteration, or troubleshoot read/download failures.
Do not use this sub-skill to author new dataset builders, run TFDS CLI workflows, configure Beam/Dataflow generation, or design external/community/folder dataset formats. Route those tasks to the sibling sub-skills dataset-authoring, cli-workflows, beam-and-performance, and formats-and-community respectively.
For safe metadata-first exploration, run the bundled inspector without download:
python scripts/tfds_inspect_dataset.py mnist --split train
Add --download only when the user explicitly accepts dataset download/preparation cost.
Pick the loading surface:
tfds.builder(...) for metadata, configs, versions, prepared-state checks, and explicit download_and_prepare() / as_dataset() control.tfds.load(...) for the standard tf.data.Dataset path.tfds.data_source(...) for TensorFlow-less Python sequence / NumPy-style consumption after data exists in a random-access format.Choose splits and determinism controls before iteration. Use split strings or tfds.even_splits(...), then configure shuffle_files, tfds.ReadConfig, and framework-level sharding deliberately.
Add decoding/performance changes only after confirming feature structure from builder.info.features or info.features returned by with_info=True.
If an error mentions missing manual files, checksum mismatch, GCS/authentication, unsupported visualization, random-access file format, or TensorFlow/Pandas/Torch/JAX boundaries, use the troubleshooting reference before retrying with downloads or broad optional dependencies.
tfds.load, tfds.builder, tfds.data_source, NumPy/DataFrame conversion, visualization, Keras, JAX, PyTorch, and GCS decisions.tfds.even_splits, ReadConfig, deterministic shuffling, multi-worker reads, tfds.benchmark, auto-cache, decoding, and memory controls.--download is passed.download=False or tfds.builder(...) inspection when the user only asks to inspect or debug metadata.download=True, builder.download_and_prepare(), public GCS streaming, and manual download paths as potentially network-, storage-, or credential-sensitive.tfds.load; use tfds.data_source for Python sequence/DataLoader workflows and document that random-access formats such as ArrayRecord are expected.shuffle_files=True improves shard-level shuffling for training but changes read determinism unless controlled with ReadConfig.