Commit d169b1e
Address review: precompute class mapping once, improve test robustness
- Build class_to_forest_idx dict once in predict() instead of per tree
- Use model.n_jobs instead of parallel_backend for parallel test
- Assert that sparse-group condition actually occurred in test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f94d9d5 commit d169b1e
2 files changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | | - | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
| |||
2565 | 2567 | | |
2566 | 2568 | | |
2567 | 2569 | | |
| 2570 | + | |
2568 | 2571 | | |
2569 | 2572 | | |
2570 | 2573 | | |
2571 | 2574 | | |
2572 | | - | |
| 2575 | + | |
2573 | 2576 | | |
2574 | 2577 | | |
2575 | | - | |
| 2578 | + | |
2576 | 2579 | | |
2577 | 2580 | | |
2578 | 2581 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
310 | 310 | | |
311 | 311 | | |
312 | 312 | | |
| 313 | + | |
313 | 314 | | |
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
319 | 328 | | |
| 329 | + | |
320 | 330 | | |
321 | 331 | | |
322 | 332 | | |
| |||
325 | 335 | | |
326 | 336 | | |
327 | 337 | | |
328 | | - | |
329 | | - | |
| 338 | + | |
| 339 | + | |
330 | 340 | | |
331 | 341 | | |
0 commit comments