8000 Fix training CLI checkpoint scheduling using actual action steps by jadenfix · Pull Request #6 · jadenfix/DRL4MM · GitHub
[go: up one dir, main page]

Skip to content

Fix training CLI checkpoint scheduling using actual action steps - #6

Merged
jadenfix merged 1 commit into
mainfrom
codex/qa-20261013-drl-checkpoint-schedule
Oct 14, 2026
Merged

jadenfix merged 1 commit into
mainfrom
codex/qa-20261013-drl-checkpoint-schedule

Conversation

@jadenfix
Copy link
Copy Markdown
Owner

The public training CLI crashed after its first episode: the default 10,000-step save interval divided by the 23,400-step episode cap became zero. It also derived the training budget from the episode cap, so short CSVs did not execute the requested number of transitions.

Count actual training action steps, replay complete episodes until the budget is reached, and cap the final episode without changing its terminal transition flag. Evaluate/save once at episode boundaries crossing step thresholds. Honor training.save_frequency when supplied, otherwise the existing agent.save_frequency; reject nonpositive/noninteger schedules before logging or experiment tracking. Document interval units, boundary behavior and current resume/held-out-data limitations.

Validation on source tree 472925e7b9c9ba4e03600bdf3861e23e62b2e2a1: all 94 tests pass. New real subprocess tests run the public train CLI with small CPU TD3 networks, verify actual optimizer iterations and checkpoint counts across short CSVs, overrides, truncated budgets and long intervals, load saved models, and run the public evaluation CLI. Tests also verify terminal masking on genuine exhaustion versus budget truncation and rejection of invalid settings. Python compilation and git diff --check pass.

Reproduced baseline failure on main 81752df before this change. Fixtures are explicit software events, not market-history/performance evidence. No live financial calls; checkpoint replay/target/RNG restoration remains outside scope. This support slice preserves the prior LOB, Bellman, ledger and CSV replay implementations.

@jadenfix
jadenfix merged commit a34fa2f into main Oct 14, 2026
3 checks passed
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

0