Commit 0f302fb
fix: resolve test failures due to missing local variables
Adjusted `TrainingJob.run` to explicitly set `i`, `metric`, and `score` after the metrics loop. This ensures that the `locals()` returned by the method contains the variables expected by the test suite, fixing the regressions introduced by batching the MLflow logging calls. Updated tests to include new internal variables in state assertions.
Co-authored-by: lgcorzo <46710567+lgcorzo@users.noreply.github.com>1 parent 19f7297 commit 0f302fb
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments