Commit 5d3e592
fix: fallback for take_along_axis in kd_tree sorting for array API < … (#3083)
* fix: fallback for take_along_axis in kd_tree sorting for array API < 2024.12
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* use np.from_dlpack instead of np.asarray for array conversion
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* use try/except and from_dlpack for take_along_axis fallback
* add device=cpu to np.from_dlpack calls
* revert deselection of test_label_propagation (#3082) to confirm fix
* restore deselection of test_label_propagation
* revert deselection of test_label_propagation to confirm fix
* fix kneighbors_graph: use csr_matrix for sklearn < 1.9
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9393460 commit 5d3e592
2 files changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | 461 | | |
465 | 462 | | |
466 | 463 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
355 | 373 | | |
356 | 374 | | |
357 | 375 | | |
| |||
675 | 693 | | |
676 | 694 | | |
677 | 695 | | |
678 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
679 | 700 | | |
680 | 701 | | |
681 | 702 | | |
| |||
0 commit comments