I am trying to run auto-sklearn on Google colab. I have successfully installed AutoSklearn but it gives me error while running following code:
Input:
import autosklearn.classfication
Output:
---------------------------------------------------------------------------
IncorrectPackageVersionError Traceback (most recent call last)
<ipython-input-39-bb85952a9dd8> in <module>()
----> 1 import autosklearn.classification
2 frames
/usr/local/lib/python3.6/dist-packages/autosklearn/util/dependencies.py in _verify_package(name, operation, version)
60 if not check:
61 raise IncorrectPackageVersionError(name, installed_version, operation,
---> 62 required_version)
63
64
IncorrectPackageVersionError: found 'distributed' version 1.25.3 but requires distributed version >=2.2.0
This might be the issue with the current version of auto sklearn , if you are ok with a older version then 0.10.0 works perfectly with colab
!pip install auto-sklearn==0.10.0
You might need additional commands as shown in this answer
Reiterating the commands here for version 0.10.0
!sudo apt-get install build-essential swig
!curl https://raw.githubusercontent.com/automl/auto-sklearn/master/requirements.txt | xargs -n 1 -L 1 pip install
!pip install auto-sklearn==0.10.0
Colab might ask you to restart itself , after which the autosklearn import would work