Commit d769d14
[enhancement] Enable Array API in ensemble algos (#2201)
* add finiteness_checker pybind11 bindings
* added finiteness checker
* Update finiteness_checker.cpp
* Update finiteness_checker.cpp
* Update finiteness_checker.cpp
* Update finiteness_checker.cpp
* Update finiteness_checker.cpp
* Update finiteness_checker.cpp
* Rename finiteness_checker.cpp to finiteness_checker.cpp
* Update finiteness_checker.cpp
* add next step
* follow conventions
* make xtable explicit
* remove comment
* Update validation.py
* Update __init__.py
* Update validation.py
* Update __init__.py
* Update __init__.py
* Update validation.py
* Update _data_conversion.py
* Update _data_conversion.py
* Update policy_common.cpp
* Update policy_common.cpp
* Update _policy.py
* Update policy_common.cpp
* Rename finiteness_checker.cpp to finiteness_checker.cpp
* Create finiteness_checker.py
* Update validation.py
* Update __init__.py
* attempt at fixing circular imports again
* fix isort
* remove __init__ changes
* last move
* Update policy_common.cpp
* Update policy_common.cpp
* Update policy_common.cpp
* Update policy_common.cpp
* Update validation.py
* add testing
* isort
* attempt to fix module error
* add fptype
* fix typo
* Update validation.py
* remove sua_ifcae from to_table
* isort and black
* Update test_memory_usage.py
* format
* Update _data_conversion.py
* Update _data_conversion.py
* Update test_validation.py
* remove unnecessary code
* make reviewer changes
* make dtype check change
* add sparse testing
* try again
* try again
* try again
* temporary commit
* first attempt
* missing change?
* modify DummyEstimator for testing
* generalize DummyEstimator
* switch test
* further testing changes
* add initial validate_data test, will be refactored
* fixes for CI
* Update validation.py
* Update validation.py
* Update test_memory_usage.py
* Update base.py
* Update base.py
* improve tests
* fix logic
* fix logic
* fix logic again
* rename file
* Revert "rename file"
This reverts commit 8d47744.
* remove duplication
* fix imports
* Rename test_finite.py to test_validation.py
* Revert "Rename test_finite.py to test_validation.py"
This reverts commit ee799f6.
* updates
* Update validation.py
* fixes for some test failures
* fix text
* fixes for some failures
* make consistent
* fix bad logic
* fix in string
* attempt tp see if dataframe conversion is causing the issue
* fix iter problem
* fix testing issues
* formatting
* revert change
* fixes for pandas
* there is a slowdown with pandas that needs to be solved
* swap to transpose for speed
* more clarity
* add _check_sample_weight
* add more testing'
* rename
* remove unnecessary imports
* fix test slowness
* focus get_dataframes_and_queues
* put config_context around
* Update test_validation.py
* Update base.py
* Update test_validation.py
* generalize regex
* add fixes for sklearn 1.0 and input_name
* fixes for test failures
* Update validation.py
* Update test_validation.py
* Update validation.py
* formattintg
* make suggested changes
* follow changes made in #2126
* fix future device problem
* Update validation.py
* finished movement
* fix first error
* next mistake
* remove bad dtypes check
* updates
* remove array
* solve onedal issues
* solve onedal issues
* updates
* updates
* further fixes
* further fixes
* fix issues to see how it goes
* oops
* updates
* add finite checks for predict and predict_proba
* updates
* centralize
* further reduce code
* updates
* remove sklearn conformance from onedal estimator init signature
* remove more
* fixes
* change away from sklearn `max_samples` in onedal estimators
* fix error
* move things
* Update forest.py
* Update forest.py
* Update _forest.py
* further fixes to onedal side
* further fixes to onedal side
* simplifications
* attempt at classifiers support
* further changes
* fix error on onedal side
* fix error on onedal side
* fixes
* fix pandas related error
* remove unnecessary code:
* try to fix issues related to regressor data
* fixes necessary for CI
* fixes for formatting
* updates
* push
* push
* fixes
* remove upon request
* remove upon request
* further fixes
* try to fix classifiers for array API inputs
* try again
* Update array_api.rst
* Update sklearnex/ensemble/_forest.py
Co-authored-by: david-cortes-intel <[email protected]>
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update _forest.py
* Update forest.py
* Update _forest.py
* Update sklearnex/ensemble/_forest.py
Co-authored-by: ethanglaser <[email protected]>
* Update _forest.py
* Update _forest.py
* Update array_api.rst
* Update array_api.rst
* remove sparse checks for sample_weight
* Update deselected_tests.yaml
* Update deselected_tests.yaml
---------
Co-authored-by: david-cortes-intel <[email protected]>
Co-authored-by: ethanglaser <[email protected]>1 parent 803c7ad commit d769d14
File tree
6 files changed
+623
-1145
lines changed- doc/sources
- onedal/ensemble
- tests
- sklearnex
- ensemble
- utils
6 files changed
+623
-1145
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | 531 | | |
536 | | - | |
| 532 | + | |
537 | 533 | | |
538 | 534 | | |
539 | 535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
0 commit comments