Commit 009a109
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 298e7d9 commit 009a109
2 files changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
70 | 73 | | |
71 | 74 | | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | | - | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
2705 | 2707 | | |
2706 | 2708 | | |
2707 | 2709 | | |
| 2710 | + | |
2708 | 2711 | | |
2709 | 2712 | | |
2710 | 2713 | | |
2711 | 2714 | | |
2712 | | - | |
| 2715 | + | |
2713 | 2716 | | |
2714 | 2717 | | |
2715 | | - | |
| 2718 | + | |
2716 | 2719 | | |
2717 | 2720 | | |
2718 | 2721 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
390 | 391 | | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
391 | 400 | | |
| 401 | + | |
392 | 402 | | |
393 | 403 | | |
394 | 404 | | |
| |||
397 | 407 | | |
398 | 408 | | |
399 | 409 | | |
400 | | - | |
401 | | - | |
| 410 | + | |
| 411 | + | |
402 | 412 | | |
403 | 413 | | |
0 commit comments