Skip to content

fix(categorizer): stop double-scaling test inputs - #356

Merged
yujiahu415 merged 2 commits into
umyelab:masterfrom
btmlnsn:fix/categ-test-double-normalize
Oct 9, 2026
Merged

yujiahu415 merged 2 commits into
umyelab:masterfrom
btmlnsn:fix/categ-test-double-normalize

Conversation

@btmlnsn

@btmlnsn btmlnsn commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • test_categorizer divided animations/pattern images by 255 twice after merge 4531b82 combined both parents' normalize styles.
  • Scale once (numpy /255, then convert_to_tensor with no second divide), matching training.
  • Practically, Test Categorizer was reporting near-zero accuracy with almost every example predicted as one behavior (e.g. recall 1.0 on a single class); after this fix, the confusion matrix and metrics reflect the model's real predictions across classes.
  • Verified locally: results no longer collapse to a single class.
  • Also bumps the version to 3.1.2 and updates the changelog so this can ship as a small hotfix release. Feel free to edit any of that. I only included it to help expedite the release.

No other functional changes in this PR.

@yujiahu415
yujiahu415 merged commit e11ebef into umyelab:master Oct 9, 2026
4 checks passed
@btmlnsn
btmlnsn deleted the fix/categ-test-double-normalize branch November 12, 2026 19:47
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