[PYTHON] How to run AutoGluon in Google Colab GPU environment

What is Auto Gluon

Auto ML library made by mxnet. https://autogluon.mxnet.io/

Setup on Linux From the official page

# Here we assume CUDA 10.0 is installed.  You should change the number
# according to your own CUDA version (e.g. mxnet-cu101 for CUDA 10.1).
pip install --upgrade mxnet-cu100
pip install autogluon

Run on Google Colab

pip install --upgrade mxnet-cu100
pip install autogluon
from autogluon import TabularPrediction as task

ImportError Traceback (most recent call last) in () 1 get_ipython().system('pip install mxnet autogluon') ----> 2 from autogluon import TabularPrediction as task

Get angry. The same applies when using the CPU.

Solution

After trying various things, it was solved by the following method. https://github.com/awslabs/autogluon/issues/163

!pip uninstall -y mkl
!pip install --upgrade mxnet-cu100
!pip install autogluon
!pip install -U ipykernel
# and restart runtime

It may fail again if the GPU or cuda of colab changes in the future.

Recommended Posts

How to run AutoGluon in Google Colab GPU environment
How to display videos inline in Google Colab
How to run TensorFlow 1.0 code in 2.0
How to access environment variables in Python
How to use Google Test in C
How to run a quickstart for Google Cloud Text-to-Speech .NET in Unity
How to use VS Code (code server) with Google Colab in just 3 lines
How to run some script regularly in Django
How to run CNN in 1 system notation in Tensorflow 2
How to run Leap Motion in non-Apple Python
[TF] How to build Tensorflow in Proxy environment
How to get the notebook name you are currently using in Google Colab
How to run GUI programs such as tkinter in Python environment on WSL2
Instructions for connecting Google Colab. To the local runtime in a Windows environment
How to run the Ansible module added in Ansible Tower
Allow Keras 2.0 and OpenCV 3.2 to work in GPU environment
How to run python in virtual space (for MacOS)
How to run tests in bulk with Python unittest
How to load files in Google Drive with Google Colaboratory
How to install Google Test / Google Mock in Visual Studio 2019
How to run setUp only once in python unittest
How to resolve SSL module errors in Anaconda environment
How to use jupyter lab in Windows 10 local environment
How to pass matplotlib backend settings in environment variables
How to use Spacy Japanese model in Google Colaboratory
How to install poetry (error handling) in zsh environment
How to set up a Google Colab environment with Coursera's advanced machine learning courses
How to use Docker to containerize your application and how to use Docker Compose to run your application in a development environment
How to run Notepad ++ Python
How to develop in Python
How to use Google Colaboratory
[TensorFlow 2 / Keras] How to run learning with CTC Loss in Keras
How to extract any appointment in Google Calendar with Python
[Google Colab] How to interrupt learning and then resume it
How to use VS Code in venv environment on windows
A note on how to load a virtual environment in PyCharm
How to develop in a virtual environment of Python [Memo]
Run the program without building a Python environment! !! (How to get started with Google Colaboratory)
[Python] How to do PCA in Python
How to handle session in SQLAlchemy
How to install OpenCV on Cloud9 and run it in Python
Run eclipse in Docker environment (noVNC)
How to use classes in Theano
How to write soberly in pandas
How to collect images in Python
How to display formulas in latex when using sympy (> = 1.4) in Google Colaboratory
How to update Spyder in Anaconda
How to use SQLite in Python
I want to run Rails with rails s even in vagrant environment
How to debug Dash (Flask) in Docker + VSCode + remote connection environment
[EC2] How to run selenium webdriver
How to run matplotlib on heroku
How to convert 0.5 to 1056964608 in one shot
[Memo] How to use Google MµG
How to reflect CSS in Django
How to kill processes in bulk
How to use Mysql in python
How to wrap C in Python
How to use ChemSpider in Python
How to use PubChem in Python
Building an environment to run ChainerMN on a GPU instance on AWS