-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fails when installing via pip #1681
Comments
Hi @Frankothe196, scikit-learn doesn't have a compatible In the very worst case, I have also pre-compiled a version for Linux which you can download from this link: |
I figured that I needed to downgrade, but I don't want to do that. The reason being google colab now ships with python 3.10 by default. I found a scikit-learn version 1.3.0 is compatible with python 3.10 which I have been working with. |
That's exactly why I manually built the
We need to update all the meta-data that autosklearn relies on. However there was a lot more things enabled in newer scikit-learn versions and it was also time for a refactor. Please see issue #1677 :) |
Ooooh ok, this makes a lot of sense now @eddiebergman So what i did was I forked the auto-sklearn repo and removed the explicit setting of the scikit-learn version in the requirements.txt. Basically; So now I can install my version via: It seems to be installing fine, but I'm fairly new to machine learning. So maybe there's some underlying issues I wouldn't be able to spot. |
Hello all, |
Hey @tron27 If you're sure auto-sklearn installed successfully, your issue is probably some complications in how you are using/configuring pip or python. You could look into how to reconfigure pip after a downgrade with google colab. Maybe this is an issue other have experienced and been able to fix. you can try this code below to downgrade python and reconfigure pip
But I would personally advice you to just use the default google version in google colab and follow the steps by @eddiebergman to install autosklearn.
You could choose to test out my solution below to see if the import would work, let me know how it work out for you if you take this route.
The line above also installs autosklearn, but it hasn't been tested. So some functions may import but not work |
Franklin, !wget https://ml.informatik.uni-freiburg.de/~bergmane/scikit_learn-0.24.2-cp310-cp310-linux_x86_64.whl It seems that auto-sklearn version 0.15.0 installed fine. There was an error during the installation relating to incompatibility with scikit-learn, but scikit-learn 0.24.2 and scipy 1.11.2 were successfully installed. Therefore, I assume that this wasn't an issue. Check screenshot attached. Unfortuanately, when I tried to run the following command below: import autosklearn.classification I received an error (check attachment). I will test out your solution and get back to you asap! Thanks! |
Franklin, It definitely works! I can run the following lines of code without errors. import autosklearn My goal is to apply AutoML in four lines of code! I realize that some functions may import, but not work. I'm keeping my fingers crossed on this. However, this is a great start. See attachments below. Thank you very much, |
Happy to help @tron27! Are you experiencing any issues so far? |
@Frankothe196, Missing multiclass-multioutput support #292 From #292 (now closed)! Matthias mentioned that when scikit-learn provides metrics to evaluate multioutput-multiclass predictions, there will be a way for autosklearn to work with multiclass-multioutput. I checked out the scikit-learn website regarding multiclass-multioutput capabilities. It appears as though scikit-learn has the capability to work with multiclass-multioutput. See the link below regarding this. It would be great if autosklearn provides this capability because I am interested in predicting longitude and latitude. Also, when I try to fit my X_train and y_train data, I get the error (see attachment). Worst case if autosklearn does not provide support for multiclass-multioutput, I'll just have to try some of the multiclass-multioutput algorithms from the scikit-learn website. Last, but not least, it appears as though the current autosklearn release only supports the first version of the AutoSklearnClassifier. Does it support the second version, AutoSklearn2Classifier? I don't think it does! https://scikit-learn.org/stable/modules/multiclass.html Thanks, |
Describe the bug
The package fails to install via pip, it seems this package depends on scikit-learn=0.24.0. Which in itself fails to install.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It is expected that auto-sklearn to install
Actual behavior, stacktrace or logfile
pip install auto-sklearn
Defaulting to user installation because normal site-packages is not writeable
Collecting auto-sklearn
Using cached auto-sklearn-0.15.0.tar.gz (6.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting scikit-learn<0.25.0,>=0.24.0
Using cached scikit-learn-0.24.2.tar.gz (7.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [786 lines of output]
Partial import of sklearn during the build process.
C compiler: x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC
Environment and installation:
Please give details about your installation:
The installation also fails on google colab
The text was updated successfully, but these errors were encountered: