fix(trainer): predict_label references undefined opt and (+3 more) - #92
Open
andrewwhitecdw wants to merge 3 commits into
Open
fix(trainer): predict_label references undefined opt and (+3 more)#92andrewwhitecdw wants to merge 3 commits into
andrewwhitecdw wants to merge 3 commits into
Conversation
Auditor: The diff does not fix the primary stated problem: predict_label still references an undefined `opt` and still lacks an `alpha` parameter. It also makes an unrelated signature change in update_teacher and is incomplete relative to the described patch.
Auditor: The diff correctly fixes the undefined opt.alpha and the deprecated add_ signature, but the else branch now raises ValueError claiming valid styles are [0-4] while the original message and visible code support [0-3]; this is an unverified, likely incorrect change and also silently turns print into raise.
andrewwhitecdw
marked this pull request as ready for review
August 3, 2026 22:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Small fixes in
trainer.py:fix: predict_label references undefined opt and falls through
Fix: Apply patch:
fix: predict_label references undefined opt.alpha causing NameError
Fix: Apply patch:
fix: predict_label else branch leaves outputs_t undefined
Fix: Replace:
with:
fix: update_teacher uses deprecated add_(value, other) signature
Fix: Replace:
with:
Files changed
trainer.py