Skip to content

[codex] align latent factor training protocols#5

Merged
stefan-jansen merged 2 commits into
mainfrom
fix/ch14-lf-protocol-audit
May 23, 2026
Merged

[codex] align latent factor training protocols#5
stefan-jansen merged 2 commits into
mainfrom
fix/ch14-lf-protocol-audit

Conversation

@stefan-jansen

Copy link
Copy Markdown
Contributor

Summary

Aligns the library latent-factor training protocols with the Chapter 14 audit conclusions:

  • adds CAE shuffled mini-batch training, hidden-layer BatchNorm, validation-loss best checkpointing, and per-member extraction
  • makes SDF checkpoints phase-qualified, tracks validation-best states by phase, and preserves legacy integer checkpoint lookup where needed
  • keeps IPCA KPS ThetaY normalization and final-gamma factor consistency cleanly documented without audit-era comments

Validation

  • uv run ruff check src tests
  • uv run ruff format --check src tests
  • uv run ty check
  • uv run pytest tests -q
  • uv build

Book-side bridge validation was run against this local source via PYTHONPATH=/home/stefan/ml4t/libraries/ml4t-models/src because the current PyPI alpha predates these API changes.

@stefan-jansen stefan-jansen marked this pull request as ready for review May 23, 2026 04:19
Copilot AI review requested due to automatic review settings May 23, 2026 04:19
@stefan-jansen stefan-jansen merged commit 831afa0 into main May 23, 2026
7 of 8 checks passed
@stefan-jansen stefan-jansen deleted the fix/ch14-lf-protocol-audit branch May 23, 2026 04:21
@stefan-jansen stefan-jansen removed the request for review from Copilot May 23, 2026 04:44
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