Skip to content

test: bound learning rate scheduling example#23

Merged
kholdrex merged 1 commit into
mainfrom
test/bound-lr-scheduling-example
Jun 5, 2026
Merged

test: bound learning rate scheduling example#23
kholdrex merged 1 commit into
mainfrom
test/bound-lr-scheduling-example

Conversation

@kholdrex
Copy link
Copy Markdown
Member

@kholdrex kholdrex commented Jun 4, 2026

Summary

Bounds the learning-rate scheduling example so it stays quick and deterministic for interactive use and regression coverage. The example now uses explicit demo-budget constants and test-visible configuration helpers for each scheduler path.

Changes

  • Adds bounded train/validation fixture sizes, sequence length, hidden sizes, epoch budgets, and scheduler period constants.
  • Updates the learning-rate scheduling demos to use the shared bounded configuration helpers.
  • Adds regression tests that verify every learning-rate scheduling demo path remains bounded and that generated sine-wave fixtures are deterministic.

Test plan

  • cargo test --test example_training_bounds_test learning_rate_scheduling --all-features
  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features

@kholdrex kholdrex merged commit 4f981db into main Jun 5, 2026
1 check passed
@kholdrex kholdrex deleted the test/bound-lr-scheduling-example branch June 5, 2026 02: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