Skip to content

test: bound early stopping example training#22

Merged
kholdrex merged 1 commit into
mainfrom
chore/bound-additional-training-examples
Jun 4, 2026
Merged

test: bound early stopping example training#22
kholdrex merged 1 commit into
mainfrom
chore/bound-additional-training-examples

Conversation

@kholdrex
Copy link
Copy Markdown
Member

@kholdrex kholdrex commented Jun 3, 2026

Summary

Bounds the early stopping example so example-backed regression tests stay fast and deterministic. The demo now uses small named training budgets and fixture sizes while preserving coverage for validation-loss monitoring, training-loss monitoring, disabled weight restoration, and higher-patience configuration.

Changes

  • Add bounded early-stopping demo configuration helpers and fixture-size constants.
  • Reduce the synthetic early-stopping fixture to deterministic, small training and validation sets.
  • Extend example training-bound regression tests to cover early stopping configs, patience limits, fixture sizes, and deterministic fixture generation.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • cargo run --example early_stopping_example

@kholdrex kholdrex merged commit fe668ac into main Jun 4, 2026
1 check passed
@kholdrex kholdrex deleted the chore/bound-additional-training-examples branch June 4, 2026 03:46
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