界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

offline_dataset_protocol

offline_dataset_protocol

【数据与研究】Validate fixed offline reinforcement learning transition datasets and summarize D4RL-style provenance before recovery experiments.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: offline_dataset_protocol description: Validate fixed offline reinforcement learning transition datasets and summarize D4RL-style provenance before recovery experiments.

Offline Dataset Protocol

Use this skill when a recovery or benchmark task needs to verify that training data is a fixed offline RL transition dataset. Do not use it to collect online rollouts, run simulators, or claim that synthetic proxy data is a real D4RL dataset.

Inputs

  • A JSON file containing either a list of transition records or an object with a transitions list.
  • Each transition must contain observation, action, reward, next_observation, terminal, and timeout.
  • Optional metadata fields such as source, domain, variant, and is_resource_derived.

Outputs

  • A JSON validation report with ok, counts, quality_tags, errors, and metadata.
  • The report preserves whether the dataset is synthetic proxy data, resource-derived data, or a real benchmark item.

Workflow

  1. Load the dataset JSON without mutating it.
  2. Confirm that every transition has the required keys.
  3. Coerce rewards to floats and terminal/timeout markers to booleans.
  4. Count transitions, terminal endings, timeout endings, and combined episode endings.
  5. Add the fixed_dataset tag and optional tags from metadata.
  6. Reject empty datasets or missing fields.

Validation

Run python scripts/validate_offline_dataset.py <dataset.json> for CLI validation. Run python -m pytest tests or the Distiller validate_skill_tree.py --run-tests command for deterministic tests.

Limitations

This skill validates dataset structure and provenance; it does not implement a full D4RL environment, simulator, or benchmark download.

我的收藏