dataset-loaders
Guides safe selection and use of PyTorch Geometric Temporal dataset loaders, including signatures, return signal types, cache and network side effects, and dataset-specific window parameters.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- dataset-loaders
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides safe selection and use of PyTorch Geometric Temporal dataset loaders, including signatures, return signal types, cache and network side effects, and dataset-specific window parameters.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/data-sources.md7.6 KB
- 参考文档references/dataset-loader-reference.md8.6 KB
- 参考文档references/troubleshooting.md7.2 KB
- 脚本scripts/list_dataset_loaders.py6.0 KB
03 SKILL.md 正文
Dataset Loaders
Use this sub-skill when the task is to choose or call a built-in loader from torch_geometric_temporal.dataset, understand what get_dataset returns, plan traffic/PDE/JSON data access, or inspect loader signatures without triggering downloads.
Do not instantiate a loader until you have decided whether network access and cache writes are acceptable. Many loaders fetch data in __init__, not in get_dataset.
Route here for
- Selecting among public
*DatasetLoaderclasses exported bytorch_geometric_temporal.dataset. - Checking constructor signatures,
get_datasetarguments, return signal types, and loader-specific lags/window/feature parameters. - Planning
raw_data_dirfor METR-LA, PeMS-Bay, PeMS, PeMS-All-LA, and WindmillLarge before construction. - Avoiding unintended downloads, partial cache files, zip extraction surprises, or unavailable WindmillSmall/WindmillMedium loaders.
- Explaining JSON/web loaders, traffic loaders, synthetic PDE loaders, and index-only PeMS loaders at a planning level.
Route elsewhere
- Ordinary snapshot iteration,
temporal_signal_split, slicing, and creating custom signals from arrays: use the temporal-signals sub-skill. get_index_dataset, dataloader return tuple unpacking,index=True,allGPU,world_size,ddp_rank, Dask-DDP, and sequence-to-sequence index batches: use the index-batching sub-skill.- Model/training loops after a loader returns snapshots: use the recurrent-layers or attention-and-hetero-layers sub-skill.
Safe planning workflow
- Inspect without constructing. Run or read
scripts/list_dataset_loaders.pyto list exported loader classes and method signatures. This imports classes but never instantiates them. - Choose by task and signal type. Use
references/dataset-loader-reference.mdto match the loader toStaticGraphTemporalSignal,DynamicGraphTemporalSignal, or index-only behavior. - Classify side effects. Read
references/data-sources.mdbefore constructing any loader. Treat constructor-time downloads as the default unless the reference says the loader is unavailable or can be fully pre-staged. - Plan parameters before the first call. Decide
lags,frames,num_timesteps_in,num_timesteps_out,target_var,feature_vars,event_id,N, andfeature_modeup front; changing them after construction is usually safe, but construction may already have downloaded data. - Use an isolated cache for traffic loaders. For loaders with
raw_data_dir, pre-stage the expected files or point to an expendable cache directory. Do not use a shared working directory when evaluating unknown prompts. - Validate only after loading is allowed. Once data access is approved, instantiate the loader, call
get_dataset, inspect one snapshot'sedge_index,edge_attr,x, andy, then hand off iterator mechanics or model loops to the appropriate sub-skill.
Quick loader selection
- Small/static JSON benchmarks:
ChickenpoxDatasetLoader,PedalMeDatasetLoader,WikiMathsDatasetLoader,MontevideoBusDatasetLoader,MTMDatasetLoader. - Dynamic graph JSON benchmarks:
EnglandCovidDatasetLoader,TwitterTennisDatasetLoader. - Traffic window forecasting:
METRLADatasetLoaderorPemsBayDatasetLoaderwithget_dataset(num_timesteps_in=..., num_timesteps_out=...). - Index-only large PeMS:
PemsDatasetLoaderandPemsAllLADatasetLoaderdo not provide ordinaryget_dataset; plan index batching separately. - Synthetic PDE data:
AdvectionDiffusionDatasetLoader,SIDiffusionDatasetLoader,WaveEquationDatasetLoaderdownload remote NumPy/PyTorch payloads at construction and return static graph temporal signals. - Avoid unavailable exports:
WindmillOutputSmallDatasetLoaderandWindmillOutputMediumDatasetLoaderare exported but raise a runtime error in the inspected source because their original host is unavailable.
References
references/dataset-loader-reference.md- class-by-class arguments, output types, side effects, and index support notes.references/data-sources.md- remote source families, cache/pre-stage expectations, and no-download alternatives.references/troubleshooting.md- failed downloads, missing optional packages, cache extraction, shape assumptions, and index-only loader errors.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).