AGENT SKILL

temporal-signals

Guides construction, slicing, splitting, iteration, batching, and debugging of PyTorch Geometric Temporal signal iterators.

License 许可
MIT
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
temporal-signals
license
MIT
metadata
{ "disco-role": "operating" }
description
Guides construction, slicing, splitting, iteration, batching, and debugging of PyTorch Geometric Temporal signal iterators.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

Temporal Signals

Use this sub-skill when a task is about building or debugging PyTorch Geometric Temporal snapshot iterators from in-memory arrays, not about downloading datasets or training models.

Keep this file as the router. Read the bundled references for constructor signatures, shape contracts, recipes, and failure recovery.

Trigger phrases

Load this sub-skill for requests such as:

  • "create a StaticGraphTemporalSignal/DynamicGraphTemporalSignal/DynamicGraphStaticSignal"
  • "iterate temporal graph snapshots" or "what does dataset[0] return?"
  • "split a temporal signal into train and test snapshots"
  • "slice a temporal iterator without shuffling"
  • "add optional per-snapshot attributes with **kwargs"
  • "use temporal batches with a batch vector or batch_dict"
  • "construct heterogeneous author/paper temporal snapshots"
  • "debug Temporal dimension inconsistency. or missing hetero keys"

Covered APIs

This sub-skill covers:

  • Homogeneous iterators: StaticGraphTemporalSignal, DynamicGraphTemporalSignal, DynamicGraphStaticSignal.
  • Homogeneous batch iterators: StaticGraphTemporalSignalBatch, DynamicGraphTemporalSignalBatch, DynamicGraphStaticSignalBatch.
  • Heterogeneous iterators: StaticHeteroGraphTemporalSignal, DynamicHeteroGraphTemporalSignal, DynamicHeteroGraphStaticSignal.
  • Heterogeneous batch iterators: StaticHeteroGraphTemporalSignalBatch, DynamicHeteroGraphTemporalSignalBatch, DynamicHeteroGraphStaticSignalBatch.
  • temporal_signal_split, integer snapshot access, slice access, iterator reset behavior, snapshot_count, and optional temporal attributes passed through **kwargs.

Route elsewhere

  • Real benchmark loader choice, downloads, cache directories, or get_dataset side effects: use dataset-loaders.
  • IndexDataset, get_index_dataset, sequence-to-sequence index batches, allGPU, world_size, or Dask-DDP: use index-batching.
  • Model forward calls, training loops, recurrent hidden state, or forecasting heads after snapshots are produced: use recurrent-layers or attention-and-hetero-layers.

First workflow

  1. Classify graph and feature dynamics. Static edges plus temporal features use StaticGraphTemporalSignal; temporal edges plus temporal features use DynamicGraphTemporalSignal; temporal edges plus one fixed feature matrix use DynamicGraphStaticSignal.
  2. Choose homogeneous vs heterogeneous. Homogeneous snapshots use arrays and return PyG Data or Batch; heterogeneous snapshots use node/relation dictionaries and return HeteroData or a hetero Batch.
  3. Choose ordinary vs batch variant. Use batch variants only when each temporal snapshot already contains multiple disjoint graphs encoded by a batch vector or batch_dict.
  4. Validate temporal lengths before construction. Every temporal sequence must have the same snapshot count for its class. Prefer iterator.snapshot_count over len(iterator) because __len__ is not implemented consistently across all iterator classes.
  5. Inspect one snapshot. Check object type and shapes: edge_index, edge_attr, x, y, and optionally batch or per-type attributes.
  6. Split or slice only after validating shapes. temporal_signal_split preserves chronological order and calls slice access; it does not shuffle, copy deeply, or validate the ratio for you.
  7. Hand off after snapshots. Once the iterator yields correct snapshots, route model selection/training to a model sub-skill.

Runtime references and helper

  • API reference: signatures, temporal length contracts, snapshot object types, shapes, slicing, and split behavior.
  • Workflow recipes: self-contained static, dynamic, dynamic-static, heterogeneous, batched, slicing, and train/test split examples.
  • Troubleshooting: mismatched lengths, edge shapes, hetero key mismatches, optional attribute alignment, and split/slice surprises.
  • Synthetic smoke script: no-download validator for ordinary, batch, hetero, dynamic-static, and split cases.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

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).

★ 351