Skip to content

Instantly share code, notes, and snippets.

@jonathanagustin
Last active May 31, 2024 02:46
Show Gist options
  • Save jonathanagustin/44c5dae92557f56dd5077967b467bc85 to your computer and use it in GitHub Desktop.
Save jonathanagustin/44c5dae92557f56dd5077967b467bc85 to your computer and use it in GitHub Desktop.
Install auto-sklearn on Google Colab
%%capture
# ---------------------------------------------------------------------------- #
# @title Install auto-sklearn on Google Colab { display-mode: "form" }
# ---------------------------------------------------------------------------- #
import contextlib
with open('/content/install-auto-sklearn.log', 'w') as f:
with contextlib.redirect_stdout(f):
%pip install uv
!uv pip install --system Cython==0.29.36 pyparsing==2.4
!uv pip install --system -r https://raw.githubusercontent.com/automl/auto-sklearn/master/requirements.txt
!uv pip install --system --no-build-isolation scikit-learn==0.24.2
!git clone --recurse-submodules --depth=1 --branch master https://github.com/automl/auto-sklearn.git
!uv pip install --system -c /content/constraints.txt -e /content/auto-sklearn/
sys.path.append('/content/auto-sklearn')
import IPython; IPython.display.clear_output()
!uv pip list --system|grep auto-sklearn
sys.stdout.flush()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment