Commit 883cc6c
authored
This originates from a bug when implementing comparison of
CrossValidationReport in #1512
Because CrossValidationReports hold a `_parent_progress`, when a
ComparisonReport creates a progress bar to iterate over
CrossValidationReports, the outer progress bar conflicts with the inner
progress bars, and rich refuses to proceed.
The solution is for the ComparisonReport to explicitly set its inner
CrossValidationReports' progress instance, so that in total there is
only one progress instance.
But before this change, the progress instance was sometimes owned by a
`CrossValidationReport.metrics` accessor. This is a problem because
accessors are re-instantiated whenever they are accessed, so their state
cannot be modified from the parent.
The solution this change implements is to remove all `progress`-related
attributes from all accessors, and to ensure that the progress instance
is only owned by the Report object, not by any of its accessors.
1 parent f3922e7 commit 883cc6c
File tree
3 files changed
+16
-20
lines changed- skore/src/skore
- sklearn
- _comparison
- _cross_validation
- utils
3 files changed
+16
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
198 | 194 | | |
199 | 195 | | |
200 | 196 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
204 | 200 | | |
205 | 201 | | |
206 | 202 | | |
| |||
1272 | 1268 | | |
1273 | 1269 | | |
1274 | 1270 | | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
1278 | 1274 | | |
1279 | 1275 | | |
1280 | 1276 | | |
| |||
Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
173 | 169 | | |
174 | 170 | | |
175 | 171 | | |
176 | | - | |
177 | | - | |
178 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
179 | 175 | | |
180 | 176 | | |
181 | 177 | | |
| |||
979 | 975 | | |
980 | 976 | | |
981 | 977 | | |
982 | | - | |
983 | | - | |
984 | | - | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
985 | 981 | | |
986 | 982 | | |
987 | 983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
42 | 46 | | |
43 | 47 | | |
44 | 48 | | |
| |||
0 commit comments