Skip to content

Fix SDF checkpoint documentation - #32

Merged
stefan-jansen merged 3 commits into
mainfrom
agent/fix-sdf-doc-checkpoints
Aug 9, 2026
Merged

stefan-jansen merged 3 commits into
mainfrom
agent/fix-sdf-doc-checkpoints

Conversation

@stefan-jansen

Copy link
Copy Markdown
Contributor

What changed

  • correct the documented SDF phase checkpoint schedule
  • use the phase-aware final conditional checkpoint as the configured default
  • execute every documented SDF checkpoint configuration in the test suite

Why

The stable validator correctly rejects conditional checkpoint epochs above n_epochs_cond=1024, but three published examples included 1280 as a conditional phase epoch and configured default. The cumulative legacy label 1280 remains valid when selecting an already fitted checkpoint.

Validation

  • 407 tests passed
  • Ruff check and format passed
  • ty check passed
  • strict MkDocs build passed
  • affected SDF, config, and example tests passed

@stefan-jansen
stefan-jansen marked this pull request as ready for review August 9, 2026 02:40
Copilot AI lite review requested due to automatic review settings August 9, 2026 02:40

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.

Pull request overview

This pull request updates the documented Stochastic Discount Factor (SDF) checkpoint schedule to match the validator’s n_epochs_cond=1024 constraint, switches published defaults to the phase-aware final conditional checkpoint, and adds a test that validates documented SDF checkpoint configurations directly from markdown sources.

Changes:

  • Update README + docs examples to remove conditional checkpoint epochs above 1024 and set default_checkpoint=("conditional", 1024) where appropriate.
  • Add a test that parses markdown python code blocks and instantiates StochasticDiscountFactorConfig from documented checkpoint settings.
  • Ensure wheel CI test environment includes documentation files needed by the new documentation-validation test.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_examples.py Adds a markdown code-block scan to validate documented StochasticDiscountFactorConfig checkpoint settings.
scripts/ci/test_wheel.py Copies README + docs into the wheel test sandbox so doc-based tests can run.
README.md Corrects the documented SDF checkpoint_epochs schedule (removes invalid 1280 conditional epoch).
docs/user-guide/stochastic-discount-factor.md Updates example checkpoint schedule and uses phase-aware default_checkpoint=("conditional", 1024).
docs/getting-started/quickstart.md Updates quickstart SDF config defaults to the phase-aware final conditional checkpoint.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/test_examples.py Resolved
Comment thread scripts/ci/test_wheel.py Resolved
@stefan-jansen
stefan-jansen merged commit c52901e into main Aug 9, 2026
21 checks passed
@stefan-jansen
stefan-jansen deleted the agent/fix-sdf-doc-checkpoints branch August 11, 2026 15:58
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