You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: throw exception instead of guessing output dimension in teachermodelwrapper
Remove unreliable dummy prediction logic and silent default to 10 that could cause
downstream training failures with incorrect label sizes.
Changes:
- Remove dummy inference attempt with Vector<T>(1) that fails for real models
- Remove catch-all fallback that silently returns 10
- Throw InvalidOperationException with clear message if metadata lacks dimension info
- Provide guidance to use explicit outputDimension constructor parameter
This prevents corrupted training from mismatched one-hot label dimensions.
Resolves coderabbitai review comment on line 132.
0 commit comments