技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
graph-data-loading【数据与研究】Guides StellarGraph graph construction, graph queries, data-format validation, built-in dataset loaders, and safe tiny graph smoke checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when a StellarGraph task starts with raw graph data,
StellarGraph/StellarDiGraph construction, graph conversion, feature/type
validation, or built-in dataset loading.
references/data-formats.md for self-contained
Pandas, NumPy, IndexedArray, heterogeneous, directed, weighted, and NetworkX
construction patterns.references/api-reference.md for verified
constructor signatures, query/conversion methods, and graph readiness checks.references/datasets.md for dataset loader classes,
cache behavior, download boundaries, and load return shapes.references/troubleshooting.md when graph
constructors reject columns, IDs, types, missing nodes, duplicate IDs, or
feature shapes.scripts/stellargraph_data_smoke.py for
a safe local smoke that constructs tiny graphs and inspects dataset classes
without downloading data.IndexedArray, or
NetworkX;StellarGraph and StellarDiGraph;info, number_of_nodes, number_of_edges,
node_feature_sizes, edge_feature_sizes, nodes, edges, neighbors,
or adjacency conversion;Cora, CiteSeer, MovieLens, MUTAG, WN18,
or METR_LA;STELLARGRAPH_DATASETS_PATH.flow, random walks, mini-batches, sparse adjacency tensors, or Keras
generators, read ../sampling-generators/SKILL.md.../node-classification-gnns/SKILL.md.../link-prediction-kg/SKILL.md.../model-ops-interpretability/SKILL.md.IndexedArray for compact numeric features with explicit IDs;0, 1, 2, ...;source and target columns unless using custom column
names in the constructor. Add weight for weighted edges and an edge type
column or edge-type dictionary for multiple relation types.StellarGraph(...) for undirected workflows or
StellarDiGraph(...) for directed workflows.number_of_nodes, number_of_edges, node_feature_sizes, edge_types,
node_types, info(), and check_graph_for_ml() when appropriate.download() unless the user
wants network access.STELLARGRAPH_DATASETS_PATH to a writable cache when the default user
cache is unsuitable.load(...) signature rather than assuming every dataset
returns the same tuple shape.Run the bundled smoke from any environment with StellarGraph installed:
python sub-skills/graph-data-loading/scripts/stellargraph_data_smoke.py --help
python sub-skills/graph-data-loading/scripts/stellargraph_data_smoke.py
Add --repo-root PATH only when intentionally testing an uninstalled local
checkout. The script does not download datasets.
nodes unless you
intentionally want node inference from edges.