Lesson 2 - Official Topic

Hi Kofi,

I ran into the same situation. I found a link to the keys in the email sent after making an Azure account.

1 Like

great thanks @DanielLam

Please I want to know if voila works in paperspace. I’m trying to use it but replacing notebook with voila/render takes me to the homepage. Thanks
@dkobran @muellerzr @init_27

1 Like

I am trying to use binder to serve the bear classifier app; but i am getting this error. Any suggestions would be helpful

2 Likes

Hi, I got the webp image failures also, but I thought they wanted to show us how to unlink the failed images, so I didn’t install but web software. Thanks for the tip…I didn’t know you could do that to get more images in the model.

I wrote a Jupyter notebook How can we determine a p-value for an experimental result? in which I carry out the experiment Jeremy suggested in Lesson 2 in relation to the discussion of Figure 1(a) of the paper "High Temperature and High Humidity Reduce the Transmission of COVID-19"

The result may surprise you!

4 Likes

Regarding COVID-19, this just came out:

(NOTE: very strong content)

I think it is worth posting, because today I went to retrieve my groceries and there were people going around like nothing is happening… wake up, this is real!

I have many friends in Bergamo…

Hi, i have a dataset which is organised like in the pic attached. How to create ImageDataBunch from this. The tree for ‘a’ is repeated for the rest
Screenshot 2020-03-28 at 7.35.49 PM

I have been reading the api docs for quite some time but was unable to get it

Does anybody know some bibliography that expands on the topics covered in the article “Designing great data products”?

Are a,b,c,d the classes you want to predict? What’s x,y?

x,y are the ones i need to predict. a,b,c,d are diff forms of x,y. Like if x & y are some image then a,b,c,d are like sketched, painted… of the image. does that make sense

In that case it should be enough to do

dblock = DataBlock(blocks=(ImageBlock, CategoryBlock()),
                           get_items=get_image_files,
                           splitter= GrandparentSplitter(train_name='train', valid_name='validation'),
                           get_y=parent_label,
                           )
dls =ImageDataLoaders.from_dblock(dblock, path, path=path)

This will merge all training and validation samples across a,b,c,d.

1 Like

Are we supposed to deploy our classifier notebook that we created? For the step that says to add the notebook to your github repository, how would you do that if using paperspace?

Apparently it can stay on glass like surface for days. Inot gel material when someone caugh. This why it’s extremely important to clean your hands and phone

I have a question on the imageclassifer clean utility. After I select the delete or the category options and run this,

#hide
for idx in cleaner.delete(): cleaner.fns[idx].unlink()
for idx,cat in cleaner.change(): shutil.move(cleaner.fns[idx], path/cat)

I’m getting these errors: – Any ideas on this?

AttributeError Traceback (most recent call last)
in
1 #hide
2 for idx in cleaner.delete(): cleaner.fns[idx].unlink()
----> 3 for idx,cat in cleaner.change(): shutil.move(cleaner.fns[idx], path/cat)

/opt/conda/envs/fastai/lib/python3.7/shutil.py in move(src, dst, copy_function)
560 return
561
–> 562 real_dst = os.path.join(dst, _basename(src))
563 if os.path.exists(real_dst):
564 raise Error(“Destination path ‘%s’ already exists” % real_dst)

/opt/conda/envs/fastai/lib/python3.7/shutil.py in _basename(path)
524 # Thus we always get the last component of the path, even for directories.
525 sep = os.path.sep + (os.path.altsep or ‘’)
–> 526 return os.path.basename(path.rstrip(sep))
527
528 def move(src, dst, copy_function=copy2):

AttributeError: ‘PosixPath’ object has no attribute ‘rstrip’

Is anyone else getting this error on paperspace?

Notebook failed to load
The error was:
[sprintf] expecting number but found string
See the error console for details.

I got the same error. I didn’t figure out how to fix it with the /voila/render/ path. To see the app working, I just ran the bearClassifier.ipynb separately from the command line.

Eg: voila bearClassifier.ipynb

Then I just switched my browser to the new localhost url.

*SOLVED
I think I was wrong on the “master” in URL path suggestion. I did not have a “requirements.txt” file in the course-v4 repo. The requirements.txt is needed to tell binder what packages to install.
1) You can’t have “master” in your the github URL path, otherwise binder gives you a can’t resolve URL error. If you forked the course-v4 repo, you can’t use binder for this because the repo has “master” in the URL
2) Make a new repo (without master in URL)

  1. Make a new repo for simplicity
  2. Add your bearClassifier.ipynb, export.pkl, and requirements.txt
  3. Double check all the file were uploaded correctly. For example, make sure the mybinder export.pkl size roughly matches your github repo file size.

Github repo example: https://github.com/Datadote/bearApp

Here is an example that took me an hr to figure out.

image


Has anyone got the Ch2 web app working on binder?

I followed the instructions with pasting the github repo, and then the /voila/render/name.ipynb, but it seems like binder can’t find the github repo link. Is there a caveat about the github repo url? I forked it from the course-v4 master.

3 Likes

I get this error


Update! - Some issue with import. Figured it out. Thank you!

When creating DataLoader from the DataBlock, it throws an error “NoneType object not iterable”…