Open KyuhwanYeon opened 3 years ago
I'm sorry, I haven't seen an issue like this before. I don't know how to debug Kaggle kernels, so I'm afraid that I cannot really help. Would uninstalling and re-installing scikit-learn be an option?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for the next 7 days. Thank you for your contributions.
This issue has been automatically closed due to inactivity.
I have faced the same issue. Is there any solution? Thanks.
Hi @karakastarik,
Could you please provide more information:
Hi,
I ran into same problem in Kaggle.
https://www.kaggle.com/mikaelovaska/scikit-learn-version-bug-with-auto-sklearn/
You can fork the notebook to try by yourself.
pip freeze
and sklearn.__version__
show that installed version of scikit-learn is 0.24.2, but anyway it runs to IncorrectPackageVersionError: found 'scikit-learn' version 0.23.2 but requires scikit-learn version >=0.24.0
After restarting it works, but this bug stops me from running notebooks to the limit of 9 hours.
I'm not sure why this occurs to be honest, thank you for the notebook. I will try to look into it but local installs of auto-sklearn seems to work without issue. I feel this is a kaggle dependant issue with re-using environments but I really can't be sure.
Same problem
Same problem here.
import sklearn
print(sklearn.__version__)
returns: 0.24.0
but
import autosklearn.classification
returns: IncorrectPackageVersionError: found 'scikit-learn' version 0.23.2 but requires scikit-learn version >=0.24.0
Just a note for future considerations of this issue. I've read a few times now that jupyter and virtual environments don't iteract well if jupyter is not installed in the venv. I'm not sure we can do much here other than add an FAQ on how to debug and solve this
auto-sklearn 0.15.0 requires scikit-learn<0.25.0,>=0.24.0, but you have scikit-learn 1.2.2 which is incompatible.
Is there a move to scikit-learn > 1.0 ?
I did find a way to install auto-sklearn on Kaggle, and it worked: I was able to get scikit-learn==1.2.2 and auto-sklearn ==0.15.0 and was able to :
import sklearn
import autosklearn
import autosklearn.classification
does it work? Errr ... no.
Describe the bug
Please describe the bug you're experiencing is precise as possible. In order to use auto-sklearn in kaggle environment, I successfully intalled it. However, It shows the error when it is imported.
Firstly, I want to share scikit-learn and auto-sklearn package version in my kaggle environment
Then, If I tried to import auto-sklearn
import autosklearn.regression ## Auto ML package
The result :I can't understand why
found 'scikit-learn' version 0.23.2 but requires scikit-learn version >=0.24.0
Because, in the kaggle environment, scikit-learn=0.24 not 0.23.2