fastai学习:05_pet_breeds Questionnaire

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.
使用更低的精度的数据进行训练。

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/550494.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

fastai学习:06_multicat Questionnarie

1.How could multi-label classification improve the usability of the bear classifier? 可以对不存在的熊进行分类 2.How do we encode the dependent variable in a multi-label classification problem? One-hot encoding: Using a vector of zeros, with a one in each…

【论文阅读笔记】Detecting Camouflaged Object in Frequency Domain

1.论文介绍 Detecting Camouflaged Object in Frequency Domain 基于频域的视频目标检测 2022年发表于CVPR [Paper] [Code] 2.摘要 隐藏目标检测&#xff08;COD&#xff09;旨在识别完美嵌入其环境中的目标&#xff0c;在医学&#xff0c;艺术和农业等领域有各种下游应用。…

ubuntu中使用firefox浏览器播放bilibili的h5网页视频

安装好系统后&#xff0c;直接firefox打开bilibili显示没有flash插件 找了一圈没有发现自动播放h5的选项 搜索了一下发现可能是需要解码器 sudo apt-get install ubuntu-restricted-extras就能看了

ubuntu挂起唤醒后十几秒钟就自动熄屏一次

昨天晚上笔记本没关机&#xff0c;ubuntu挂起一晚上&#xff0c;今天早上打开电脑&#xff0c;发现每过十几秒钟就自动熄屏一次&#xff0c;重启之后好了&#xff0c;不知道什么原因 搜索了一下说可能是DPMS的问题&#xff0c;用xset -dpms可以关闭电源管理选项 但是本来的设置…

python3 上传文件到目标机器_Python3 +服务器搭建私人云盘,再也不怕限速了

先来看看效果电脑访问手机访问Windows版本搭建(1).首先你需要在你的电脑上或者服务器上安装Python3.X。(2).然后通过如下指令来安装updog库&#xff0c;网上有很多关于updog的介绍&#xff0c;我这里就不详细说pip3 install updog(3).静静的等他安装完成&#xff0c;然后执行以…

Ubuntu下绘图软件krita64位无中文问题

ubuntu20 sudo apt install krita-l10n 就有了 参考&#xff1a;https://bbs.deepin.org/post/181669

tableau度量值计算_Tableau图表界面组成介绍

声明&#xff1a;内容来源拉勾教育数据分析训练营课程视频1 Tableau工作表基本界面基础概念&#xff1a;维度、度量、聚合、粒度。维度: 维度包含定量值(例如名称、日期或地理数据)&#xff0c;可以使用维度进行分类、分段以及揭示数据中的详细信息。维度影响视图中的详细级别。…

小强升职记思维导图_你学会用 “思维导图” 学英语了吗?

今天我们来讲讲目前比较火爆的“思维导图学习法”。思维导图又叫“MIND MAP”&#xff0c;是英国人托尼博赞发明的一种思维工具。托尼博赞本人在心理学、语言学、数学以及科学方向均获得过学位&#xff0c;而且他还创造了世界脑力奥林匹克运动。虽然大师已逝&#xff0c;但是这…

ubuntu下创建软件图标和直接点文件打开

ubuntu中有一些从github上下载的软件或者是appimage软件&#xff0c;能够使用&#xff0c;但是不在应用程序中显示&#xff0c;也不能直接点文件来打开程序 以cajviewer为例子&#xff0c;下下来是CAJViewer-x86_64-buildubuntu1604-210401.AppImage 打开目录/usr/share/appli…

hive币涨幅空间大吗_自动消防水炮只能安装在大空间场所吗

在大家不了解或者不清楚自动消防水炮的时候&#xff0c;经过一些厂家解释或者了解产品后&#xff0c;都知道是一种能够自动跟踪定位火焰并在短时内灭火的喷水系统&#xff0c;而且适用于安装在一些高大空间场所中&#xff0c;那么这是不是意味着&#xff0c;只能在大空间场所安…

可以直接考甲级吗_函授本科可以考四级吗

函授本科是可以考英语四级的。但必须经过学生所在学校同意&#xff0c;才可以在本校报名参加考试。函授本科可以考四级吗目前来说不管是函授大专还是本科,是可以考英语四级的,但应经所报考的学校同意&#xff0c;可在成人高考报考学校报名参加考试。函授本科用处大不大?函授本…

duration转为时间戳_Flink Table APIamp;SQL编程指南之时间属性(3)

Flink总共有三种时间语义&#xff1a;Processing time(处理时间)、Event time(事件时间)以及Ingestion time(摄入时间)。关于这些时间语义的具体解释&#xff0c;可以参考另一篇文章Flink的时间与watermarks详解。本文主要讲解Flink Table API & SQL中基于时间的算子如何定…

旅游系统_旅游标识系统,必须真的“旅游化”

标识是为游客传递路线&#xff0c;指明景点位置、起安全警示作用以及传达公园发展理念的标识(牌)或标识物&#xff0c;是公园的重要组成部分&#xff0c;有助于旅游者顺利完成游览过程&#xff0c;获得满意的旅游体验。好的完善的标识系统&#xff0c;可以起到画龙点睛的作用&a…

如何在linux下启动和关闭oracle服务

1.前言 确保我们能够访问oracle数据库包含两部分&#xff0c;一个是oracle实例&#xff0c;一个是监听&#xff0c;两个同时开启&#xff0c;我们才能正常的使用数据库&#xff0c;因此我们在关闭和启动oracle服务时&#xff0c;也需要同时操作实例和监听。能够操作linux的工具…

exfat为什么不适合机械硬盘_为什么有人说小排量车不适合跑高速,多少排量的车适合?...

阅读本文前&#xff0c;请您先点击上面的蓝色字体“梅赛德斯丶Benz”&#xff0c;再点击“关注”&#xff0c;这样您就可以继续免费收到祝福了。每天都有分享&#xff0c;完全是免费订阅&#xff0c;请放心关注。 哈喽&#xff0c;小伙伴们关注“梅塞德斯丶Benz”每…

调用第三方接口的几种请求方式

第一种方式&#xff1a; String url4"https://www.showmebug.com/open_api/v1/interviews"; jsonnew JSONObject(); json.put("candidate_name", "张三");//传递的参数 MediaType mediaType MediaType.parse("application/json;charsetut…

rust石头墙几个c4_石头在景观中的运用

石材的运用横跨几个世纪&#xff0c;经久不衰。在景观设计中仍然是一个受欢迎的材料。运用好了可以很好的彰显景观的特性。石头的优点持续一生&#xff1b;非常耐用&#xff1b;容易使用&#xff1b;可以用在墙壁装修&#xff0c;铺路&#xff0c;以及重复使用&#xff1b;有不…

java通过POI技术将html转成word

private static void inputStreamToWord() throws IOException {String content "<html>" "<head>你好</head>" "<body>" "<table>" "<tr>" "<td>信息1</td>" …

h5禁用浏览器下载视频_Flash正式被全球禁用,只有中国版还活着

这个弹窗常用 Chrome 或 Edge 浏览器的用户应该很熟悉&#xff0c;基本上每月都能看到几次。说起来 Adobe Flash Player 也是老朋友&#xff0c;这个 F 红标从 4399 小游戏到视频网站默认播放器&#xff0c;二十年来几乎伴随互联网一代人成长。图源自小众软件但技术总在进步&am…

java通过POI技术将HTML文件转成Word

public void htmlToWord2() throws Exception {InputStream bodyIs new FileInputStream("f:\\1.html");InputStream cssIs new FileInputStream("f:\\1.css");String body this.getContent(bodyIs);String css this.getContent(cssIs);//拼一个标准的…