技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
heterogeneous-graphs【数据与研究】Build and debug PyTorch Geometric heterogeneous graph data, loaders, HeteroConv models, to_hetero conversions, and hetero link-prediction workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task involves PyG HeteroData, typed metadata, heterogeneous mini-batches, HeteroConv, to_hetero, bipartite message passing, or heterogeneous link prediction.
references/hetero-api.md when you need exact object shapes, metadata conventions, loader signatures, or model API choices for hetero graphs.references/hetero-workflows.md when implementing a complete workflow: constructing HeteroData, converting a homogeneous SAGE-style model with to_hetero, hand-writing HeteroConv, using hetero loaders, or preparing link prediction splits.references/troubleshooting.md when errors mention missing stores, invalid edge triplets, absent reverse edges, to_hetero metadata mismatch, or bipartite size inference.scripts/hetero_metadata_check.py --help to inspect a safe synthetic validator for tiny HeteroData metadata and reverse-edge expectations.data = HeteroData(), then assign node stores such as data['paper'].x and edge stores such as data['author', 'writes', 'paper'].edge_index.node_types, edge_types = data.metadata() as the canonical metadata tuple for to_hetero, HeteroConv planning, and hetero loader dictionaries.num_neighbors={edge_type: [fanout1, fanout2]} and set input_nodes=('paper', paper_indices).edge_types and rev_edge_types to RandomLinkSplit when reverse edges exist.SAGEConv((-1, -1), hidden_channels) or other bipartite-capable layers in the homogeneous model before calling to_hetero(model, data.metadata(), aggr='sum').Data, dataset classes, transforms, and basic graph validation, use the sibling data-and-datasets skill.gnn-modeling skill.scalable-distributed skill.