When using sklearn >=1.3.0, we'll catch an error when fitting GridSearchCV:
AttributeError: 'GridSearchCV' object has no attribute 'pipeline'
This PR fix this by letting every keyword argument accepted by our customized GridSearchCV correspond to an attribute of the sklearn's original GridSearchCV.
Test CLI & API (bash tests/autotest.sh)
Test APIs used by main.py.
[ ] Test Pass
(Copy and paste the last outputted line here.)
[x] Not Applicable (i.e., the PR does not include API changes.)
Check API Document
If any new APIs are added, please check if the description of the APIs is added to API document.
[x] Not Applicable (i.e., the PR does not include API changes.)
Test quickstart & API (bash tests/docs/test_changed_document.sh)
If any APIs in quickstarts or tutorials are modified, please run this test to check if the current examples can run correctly after the modified APIs are released.
What does this PR do?
When using sklearn >=1.3.0, we'll catch an error when fitting GridSearchCV:
This PR fix this by letting every keyword argument accepted by our customized GridSearchCV correspond to an attribute of the sklearn's original GridSearchCV.
Test CLI & API (
bash tests/autotest.sh
)Test APIs used by main.py.
Check API Document
If any new APIs are added, please check if the description of the APIs is added to API document.
Test quickstart & API (
bash tests/docs/test_changed_document.sh
)If any APIs in quickstarts or tutorials are modified, please run this test to check if the current examples can run correctly after the modified APIs are released.