1.Why do we first resize to a large size on the CPU, and then to a smaller size on the GPU?
首先,在训练模型时,我们希望能够将图片的尺寸统一,整理为张量,传入GPU,我们还希望最大限度地减少执行不同增强计算的数量。其次,在进行图片尺寸调整时,常见的数据增强方法可能会引起引入虚假空白数据,使数据降维的问题。
2.If you are not familiar with regular expressions, find a regular expression tutorial, and some problem sets, and complete them. Have a look on the book’s website for suggestions.
正则表达式
3.What are the two ways in which data is most commonly provided, for most deep learning datasets?
Data is usually provided in one of these two ways:
Individual files representing items of data, such as text documents or images, possibly organized into folders or with filenames representing information about those items
A table of data, such as in CSV format, where each row is an item which may include filenames providing a connection between the data in the table and data in other formats, such as text documents and images
4.Look up the documentation for L and try using a few of the new methods that it adds.
??L,确实有很多功能
5.Look up the documentation for the Python pathlib module and try using a few methods of the Path class.
https://docs.python.org/zh-cn/3/library/pathlib.html
6.Give two examples of ways that image transformations can degrade the quality of the data.
(1)旋转会带来空白
(2)resize需要插值
7.What method does fastai provide to view the data in a DataLoaders?
DataLoaders.show_batch
8.What method does fastai provide to help you debug a DataBlock?
DataLoaders.summary
If you made a mistake while building your DataBlock, it is very likely you won’t see it before this step. To debug this, we encourage you to use the summary method. It will attempt to create a batch from the source you give it, with a lot of details. Also, if it fails, you will see exactly at which point the error happens, and the library will try to give you some help. For instance, one common mistake is to forget to use a Resize transform, so you end up with pictures of different sizes and are not able to batch them. Here is what the summary would look like in that case (note that the exact text may have changed since the time of writing, but it will give you an idea):
9.Should you hold off on training a model until you have thoroughly cleaned your data?
No.
10.What are the two pieces that are combined into cross-entropy loss in PyTorch?
A combination of a Softmax function and Negative Log Likelihood Loss.
11.What are the two properties of activations that softmax ensures? Why is this important?
In our classification model, we use the softmax activation function in the final layer to ensure that the activations are all between 0 and 1, and that they sum to 1.
12.When might you want your activations to not have these two properties?
Multi-label classification problem.
13.Calculate the exp and softmax columns of <> yourself (i.e., in a spreadsheet, with a calculator, or in a notebook).
简单计算
14.Why can’t we use torch.where to create a loss function for datasets where our label can have more than two categories?
torch.where只能用于二分类
15.What is the value of log(-2)? Why?
没有意义
16.What are two good rules of thumb for picking a learning rate from the learning rate finder?
(1)最小值除以10,Minimum/10
(2)斜率最大值,steepest point
17.What two steps does the fine_tune method do?
When we call the fine_tune method fastai does two things:
Trains the randomly added layers for one epoch, with all other layers frozen
Unfreezes all of the layers, and trains them all for the number of epochs requested
18.In Jupyter Notebook, how do you get the source code for a method or function?
??
19.What are discriminative learning rates?
对模型不同层,采用不同的学习率,较早的层高,较晚的层低。
20.How is a Python slice object interpreted when passed as a learning rate to fastai?
The first value passed will be the learning rate in the earliest layer of the neural network, and the second value will be the learning rate in the final layer. The layers in between will have learning rates that are multiplicatively equidistant throughout that range.
21.Why is early stopping a poor choice when using 1cycle training?
Before the days of 1cycle training it was very common to save the model at the end of each epoch, and then select whichever model had the best accuracy out of all of the models saved in each epoch. This is known as early stopping. However, this is very unlikely to give you the best answer, because those epochs in the middle occur before the learning rate has had a chance to reach the small values, where it can really find the best result. Therefore, if you find that you have overfit, what you should actually do is retrain your model from scratch, and this time select a total number of epochs based on where your previous best results were found.
22.What is the difference between resnet50 and resnet101?
resnet101规模更大。
23.What does to_fp16 do?
One technique that can speed things up a lot is mixed-precision training. This refers to using less-precise numbers (half-precision floating point, also called fp16) where possible during training.
使用更低的精度的数据进行训练。

fastai学习:05_pet_breeds Questionnaire相关推荐

  1. fastai学习:01_intro Questionnaire

    fastAI Questionnaire 感觉还挺多的,怪不得说每一课要额外8小时进行学习. 1.Do you need these for deep learning? Lots of math T ...

  2. fastai学习:02_production Questionnaire

    1.Where do text models currently have a major deficiency? Deep learning is currently not good at gen ...

  3. fastai学习——第一个bug

    跟着视频学习,在运行第一段测试代码的时候出现问题 from fastai.vision.all import * path = untar_data(URLs.PETS)/'images'def is ...

  4. fastai学习:06_multicat Questionnarie

    1.How could multi-label classification improve the usability of the bear classifier? 可以对不存在的熊进行分类 2. ...

  5. fastai学习——第二个问题

    第二节课需要使用bing image search api获取bing图片搜索中的熊图片,此时发现获取api需要注册azure,卡在绑定卡上很久,想了想还要去弄一张带visa的卡,还是算了,就用猫狗大 ...

  6. fastai学习笔记——安装

    虽然说是推荐linux,windows可能有bug,但是我还是没办法只用linux win10+anaconda python=3.7 安装很简单 conda install -c fastchan ...

  7. 使用Fastai开发和部署图像分类器应用

    作者|KRRAI77@GMAIL.COM 编译|Flin 来源|analyticsvidhya 介绍 Fastai是一个流行的开源库,用于学习和练习机器学习以及深度学习.杰里米·霍华德(Jeremy ...

  8. 免费GPU哪家强?谷歌Kaggle vs. Colab

    作者 | Jeff Hale 译者 | Monanfei 责编 | 夕颜 出品 | AI科技大本营(id:rgznai100) 谷歌有两个平台提供免费的云端GPU:Colab和Kaggle, 如果你想 ...

  9. 为什么安装的是gpu版本训练时还是用的cpu?_免费GPU哪家强?谷歌Kaggle vs. Colab | 硬核评测...

    作者 | Jeff Hale译者 | Monanfei责编 | 夕颜出品 | AI科技大本营(id:rgznai100) 谷歌有两个平台提供免费的云端GPU:Colab和Kaggle, 如果你想深入学 ...

最新文章

  1. edit filter rules in sql source control
  2. 使用FIO对SATA、SSD和PCIe Flash进行测试
  3. 【网络安全】Windows cmd的命令混淆学习思路
  4. 第十届蓝桥杯大赛软件赛省赛 C/C++ 大学B组
  5. 一、专栏作者润森闲谈数据分析
  6. 追本溯源 —— 汉语词汇含义的演化
  7. mysql 5.6.30 编译_编译安装mysql 5.6.30
  8. 基于 HTML5 Canvas 实现的文字动画特效
  9. linux内存布局 zone,【原创】(八)Linux内存管理 - zoned page frame allocator - 3
  10. 计算机网络学习笔记(1. 什么是计算机网络?)
  11. ashx是什么文件,什么时候使用ashx
  12. 23种设计模式(1):单例模式
  13. c( )函数--R语言
  14. 计算机硬盘驱动器可以存软件吗,如何从计算机硬盘驱动器恢复数据
  15. 计算机复试专业课笔试,关于计算机考研专业课的考试内容
  16. 35岁的程序员:第44章,宿命
  17. 斐讯n1盒子装网易音乐命令版
  18. 双开助手多开分身版 v5.1.8
  19. 微信小程序scroll-view实现滚动卡片
  20. PEPL命令-交互式解释器

热门文章

  1. System Center Technical Preview DPM(2016)对Exchange2016的灾难恢复
  2. Using JSON for data transfer
  3. css资源网站收集推荐
  4. Caused by: java.lang.ClassNotFoundException: javax.servlet.jsp.jstl.core.LoopTag
  5. 怎么把pdf转换为html,如何将PDF转换成HTML网页格式呢?
  6. markdown 语法_markdown特殊语法之上下标
  7. footer.php置底,CSS五种方式实现Footer置底
  8. [转载] Python 迭代器 深入理解 与应用示例
  9. 数字和数字根的总和_使用8086微处理器查找8位数字的数字总和
  10. ppython_Python pcom包_程序模块 - PyPI - Python中文网