Fastai in colab

(abhishek kaushik) #1

while i am trying to run ml lesson1 in colab its giving me an error


ModuleNotFoundError Traceback (most recent call last)
in ()
1 from fastai.imports import *
----> 2 from fastai.structured import *
3
4 from pandas_summary import DataFrameSummary
5 from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier

ModuleNotFoundError: No module named ‘fastai.structured’


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
“Open Examples” button below.

i have done the setup part which says to use this line "!curl -s https://course.fast.ai/setup/colab | bash " of code in the beginning

0 Likes

(Zachary Mueller) #2

That setup is for 0.7. You want the fastai-old repo for that version of the course. You can do a git-clone to grab it :slight_smile:

0 Likes

(abhishek kaushik) #3

can you tell where is the new setup and how to do it

0 Likes

(Zachary Mueller) #4

By new I mean the practical deep learning for coders. For ML you want the old folder in the fastai git: https://github.com/fastai/fastai/tree/master/old

So git-clone and then cd into old and you’ll be able to get what they are using.

0 Likes

(abhishek kaushik) #5

hey i am sorry but i am not getting you completely
i am very new to dl and ml stuff so i dont understand much
idk from where to start. it is very confusing. if you can help me like a tutorial type
thanks

0 Likes