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

datasets-and-customization

datasets-and-customization

【数据与研究】Route Graphormer dataset source selection, custom registration, preprocessing, and validation.

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

技能说明

GitHub

name: datasets-and-customization description: "Route Graphormer dataset source selection, custom registration, preprocessing, and validation." disable-model-invocation: true metadata: disco-role: operating license: MIT

Datasets and Customization

Use this sub-skill when you need to:

  • choose a built-in DGL, PyG, or OGB dataset
  • parse --dataset-name and --dataset-source
  • register a custom dataset with register_dataset
  • reason about Graphormer preprocessing and batch fields
  • validate a user dataset module before training

Route elsewhere

  • Training schedules, optimizer choices, and long-run command building: fairseq-training
  • Pretrained checkpoints, evaluation, and fine-tuning: pretrained-and-evaluation
  • Model, task, criterion, or architecture internals: model-extension

Bundled runtime files

Quick rules

  • Built-in datasets use --dataset-source plus --dataset-name.
  • Custom datasets use --user-data-dir and --dataset-name; do not combine them with --dataset-source.
  • Custom registrations must return dataset, train_idx, valid_idx, test_idx, and source.
  • Allowed custom source values are dgl and pyg.
  • Graphormer preprocessing produces idx, attn_bias, attn_edge_type, spatial_pos, in_degree, out_degree, x, edge_input, and y.
  • Batch collation drops graphs above max_nodes, masks long spatial distances, and truncates multi-hop edge history.

Validation path

  1. Read the dataset source table and syntax guide.
  2. Register or locate the dataset module.
  3. Run the bundled validator in list-only mode or full validation mode.
  4. If validation fails, use the troubleshooting notes before moving to training or evaluation.
  5. Run the bundled validator in list-only mode first; rerun with --execute-registrations only when dataset construction is safe.
我的收藏