Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GridSearchCV to support sklearn>=1.3.0 #362

Merged
merged 4 commits into from
Mar 7, 2024

Conversation

thomas0125
Copy link
Contributor

@thomas0125 thomas0125 commented Mar 2, 2024

What does this PR do?

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.)
  • 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.

  • API document is updated (linear, nn)
  • 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.

@thomas0125 thomas0125 marked this pull request as ready for review March 4, 2024 19:38
@Eleven1Liu Eleven1Liu added version release Bump version for PyPI labels Mar 6, 2024
Copy link
Collaborator

@Eleven1Liu Eleven1Liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also remove "==1.2.2" in setup.cfg .

scikit-learn==1.2.2

@Eleven1Liu Eleven1Liu merged commit d9307a0 into ASUS-AICS:master Mar 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release Bump version for PyPI version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants