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
New error message from established workflow: AttributeError: 'Pipeline' object has no attribute '_check_fit_params'[BUG] #1078
Comments
What is your version of scikit-learn? |
I assume that a quick fix would be to upgrade scikit-learn. I'll check on my side if we have a compatibility issue with older versions. |
Are there any updates on this issue? I have the same problem of getting AttributeError: 'Pipeline' object has no attribute '_check_fit_params' on Windows with: |
Sorry for the delay. Ultimately, the solution for me was similar to your suggestions. I needed to uninstall and re-install Anaconda and select that environment within VS Code after confirming the version of scikit-learn.
Thanks,
Kevin
From: Guillaume Lemaitre ***@***.***>
Date: Friday, April 19, 2024 at 1:09 PM
To: scikit-learn-contrib/imbalanced-learn ***@***.***>
Cc: Dysart, Kevin ***@***.***>, Author ***@***.***>
Subject: Re: [scikit-learn-contrib/imbalanced-learn] New error message from established workflow: AttributeError: 'Pipeline' object has no attribute '_check_fit_params'[BUG] (Issue #1078)
I assume that a quick fix would be to upgrade scikit-learn. I'll check on my side if we have a compatibility issue with older versions. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because
ZjQcmQRYFpfptBannerStart
EXTERNAL EMAIL USE CAUTION
Do not click links or open attachments unless it is normal to receive them from this sender and you are expecting them.
If you do not know who this is from or were not expecting the email please delete the email.
Report Suspicious <https://us-phishalarm-ewt.proofpoint.com/EWT/v1/Li743BnW!RyCfkHxZ8eJsBkXB6OaeS-1ZLRpeOvKsTk1EYBqIdfefZ9VTLe9g2oWOuJn7HtSaeALXtd8vV2GFZB9p7sen5sTurRZi-Gm1u6W9d3pmipqx4Sv-FHJC6AcjCwC5k1l4tenKYw$>
ZjQcmQRYFpfptBannerEnd
I assume that a quick fix would be to upgrade scikit-learn. I'll check on my side if we have a compatibility issue with older versions.
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https:/github.com/scikit-learn-contrib/imbalanced-learn/issues/1078*issuecomment-2066969000__;Iw!!Li743BnW!gbI6-NhW6YsP340eUArdVawPkkHhv0QrLS20_2w6NATJBfAWWpCpegMlz5aeVgeLtw7rpP8t0CVn5cx7CmXDdxPUmBy1$>, or unsubscribe<https://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/ACNF3SACHT6COMTCPROLNM3Y6FFV5AVCNFSM6AAAAABGLING22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANRWHE3DSMBQGA__;!!Li743BnW!gbI6-NhW6YsP340eUArdVawPkkHhv0QrLS20_2w6NATJBfAWWpCpegMlz5aeVgeLtw7rpP8t0CVn5cx7CmXDd2i8Q9sG$>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Kevin, could you please let me know which versions of python, scikit-learn, and imbalanced-learn you are using? I have tried different versions. Also, I have uninstalled and re-installed Anaconda. But the same error still shows up. |
@mahanrahimi you need to update to 0.12.2 for compatibility with scikit-learn 1.4.2 |
Thank you so much, this resolved my problem. |
Describe the bug
I received this error message when attempting to run an established workflow that is dependent on creating a pipeline, applying SMOTE, and then using GridSearchCV to tune the hyperparameters. I've replicated the error when running the code on both a machine running the latest version of PopOS and Mac OS X. Python version 3.11.5. I've pasted a sample code below, generated with Copilot, that replicates the exact error and pipeline build. This code returned no errors in the last 24 hours from this post.
Steps/Code to Reproduce
Error Message
The text was updated successfully, but these errors were encountered: