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

refactor: improve monkey patch for SklearnQueryClassifier #3732

Merged
merged 2 commits into from
Dec 20, 2022
Merged

refactor: improve monkey patch for SklearnQueryClassifier #3732

merged 2 commits into from
Dec 20, 2022

Conversation

anakin87
Copy link
Member

Related Issues

Proposed Changes:

As described in #2904 (comment), this extended monkey patch is needed to make the new models (trained with scikit-learn==1.2.0) compatible with scikit-learn>=1.0.0

How did you test it?

Manual verification

Checklist

@anakin87 anakin87 requested a review from a team as a code owner December 19, 2022 20:12
@anakin87 anakin87 requested review from vblagoje and removed request for a team December 19, 2022 20:12
@anakin87
Copy link
Member Author

@julian-risch feel free to jump in!

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

The changes look good to me. 👍 Thank you @anakin87 ! I just replaced the old models on S3 with the new ones. The test case test_query_keyword_statement_classifier in test_standard_pipelines.py still passes. I will merge this PR now.

@julian-risch julian-risch merged commit 559f6e0 into deepset-ai:main Dec 20, 2022
@anakin87 anakin87 deleted the sklearn_compatibility branch December 20, 2022 09:08
@julian-risch julian-risch mentioned this pull request Dec 20, 2022
1 task
ZanSara added a commit that referenced this pull request Dec 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants