Skip to content

Protocol discovery: tsf data splits, generated split facts, reproduce skill - #70

Merged
ChengAoShen merged 1 commit into
devfrom
fix/protocol-discovery
Oct 7, 2026
Merged

ChengAoShen merged 1 commit into
devfrom
fix/protocol-discovery

Conversation

@ChengAoShen

Copy link
Copy Markdown
Collaborator

Agents reproducing new papers inside TSFLab split ETTh1 as 6:2:2 of the full 17,420-row CSV. The card's one-line protocol did not state the 14,400-row truncation, and the reproduce skill pushed them to write private loops. This PR makes the official protocol explicit and reusable for every dataset.

  • tsflab.data.protocol: split_borders / train_rows are now the single source that all loaders use; split_protocol and load_splits (also on an explicit raw file) return the official borders, scaling and arrays.
  • CLI: tsf data splits <dataset> [--seq-len N] [--path FILE] [--json].
  • Dataset L1 page shows generated split facts. The [protocol] line now states hidden rules for ETT (row truncation) and the PEMS/METR-LA window-index splits.
  • reproduce-paper-results skill: protocol first; path for a method not in the catalog; local values only from executed runs; custom loops only through load_splits. AGENTS.md points to tsf data splits.
  • Fixed a bug in the tsf data add loader template (_get_borders argument order).

Loader outputs are byte-identical to before for ETTh1, ETTm1, weather and solar (all splits, M and S). No model code changes. Checks: audit passes, ruff F passes, pytest 360 passed.

… protocols

- tsflab.data.protocol: split_borders/train_rows used by every ForecastingDataset,
  split_protocol (rows used, truncation, borders with seq_len overlap, ratio,
  scaling) and load_splits (runner-identical arrays, optional explicit file)
- ETT row limits become loader class facts (max_rows); loaders byte-identical
- tsf data splits <dataset> [--seq-len N] [--path FILE] [--json]
- tsf catalog show <dataset>: generated split facts lead the L1 page
- card [protocol]: ETT truncation and PEMS/METR-LA window split stated explicitly
- reproduce-paper-results: protocol-first, scaffold + tsf run for new methods,
  executed runs only; AGENTS.md points to tsf data splits
- fix the tsf data add loader template border argument order
Copilot AI balanced review requested due to automatic review settings October 7, 2026 00:34
@ChengAoShen
ChengAoShen merged commit 79e3583 into dev Oct 7, 2026
4 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@ChengAoShen
ChengAoShen deleted the fix/protocol-discovery branch October 7, 2026 00:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants