Skip to content

chore: tidy Trainer.train loop + drop __main__ dead code#44

Merged
AmitMY merged 1 commit into
mainfrom
chore/trainer-cleanup
Jun 28, 2026
Merged

chore: tidy Trainer.train loop + drop __main__ dead code#44
AmitMY merged 1 commit into
mainfrom
chore/trainer-cleanup

Conversation

@AmitMY

@AmitMY AmitMY commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Pure cleanup, no behavior change — extracted from the incremental-counting PR (#42) so that one stays focused on the speed change.

  • Collapse the draw / get_merges steps in the recount loop and drop stray blank lines.
  • Inline create_gif(...).show().
  • Remove the commented-out example_sentence / other_graph scratch in the __main__ block.

Tests pass; output unchanged.

🤖 Generated with Claude Code

No behavior change: collapse the draw/get_merges steps in the training
loop, drop stray blank lines, and remove the commented-out example_sentence
/other_graph scratch in the __main__ block.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@AmitMY AmitMY merged commit 8df54ea into main Jun 28, 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