技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-and-datasets【数据与研究】Create, validate, split, transform, and package PyTorch Geometric Data, HeteroData, Batch, Dataset, and InMemoryDataset objects with safe local fixtures.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about graph containers, hetero graph containers, batching graph objects, local dataset classes, transforms, dataset splitting, or synthetic fixtures in PyTorch Geometric 2.9.
Data, HeteroData, and Batch objects, including expected tensor shapes and metadata.Dataset or InMemoryDataset, choose transform vs pre_transform, create local layouts, and split nodes or links.python scripts/validate_basic_graph.py --fixture homogeneous
python scripts/validate_basic_graph.py --fixture hetero
python scripts/validate_basic_graph.py --fixture invalid --expect-invalid
Each command prints a JSON summary and uses only tiny in-memory tensors plus installed torch and torch_geometric APIs. No downloads, GPUs, network access, credentials, or destructive writes are required.
../loaders-and-sampling/SKILL.md.MessagePassing, convolutions, pooling, and training loops, use ../gnn-modeling/SKILL.md.HeteroConv, to_hetero, and hetero-specific training recipes, use ../heterogeneous-graphs/SKILL.md.../scalable-distributed/SKILL.md.torch_geometric.data.Data(x=..., edge_index=..., y=...) or HeteroData() and call .validate(raise_on_error=True) before passing them to loaders or models.data.num_nodes explicitly when node features are absent or isolated nodes matter.torch.long COO edge_index tensors shaped [2, num_edges] with zero-based node ids.InMemoryDataset only when all processed graphs fit in CPU memory; otherwise implement Dataset with one processed file per graph.