Skip to content

test: bound real data example#27

Merged
kholdrex merged 1 commit into
mainfrom
test/bound-real-data-example
Jun 15, 2026
Merged

test: bound real data example#27
kholdrex merged 1 commit into
mainfrom
test/bound-real-data-example

Conversation

@kholdrex

@kholdrex kholdrex commented Jun 6, 2026

Copy link
Copy Markdown
Member

Summary

Bounds the real data time-series example so it stays fast and reproducible like the other demo examples. The synthetic sensor fixture now uses a seeded RNG, and the demo's training and prediction budgets are named constants that tests can enforce.

Changes

  • Adds explicit demo-budget constants for sensor days, sequence length, hidden size, recent prediction window, prediction range, epochs, print interval, and RNG seed.
  • Replaces global random sensor noise with a local seeded RNG for deterministic synthetic data.
  • Extracts the real-data training configuration into a testable helper.
  • Adds regression coverage for bounded demo sizes, reproducible sensor data, and generated sensor value ranges.

Test Plan

  • Rust formatting passed.
  • Clippy passed with warnings denied across all targets and features.
  • Full test suite passed with all features enabled.
  • Focused example training-bound tests passed.

@kholdrex
kholdrex merged commit d59e7f2 into main Jun 15, 2026
1 check passed
@kholdrex
kholdrex deleted the test/bound-real-data-example branch June 15, 2026 03:13
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.

1 participant