必威体育Betway必威体育官网
当前位置:首页 > IT技术

【中英】【吴恩达课后测验】Course 4 -卷积神经网络 - 第二周测验

时间:2019-11-06 07:13:21来源:IT技术作者:seo实验室小编阅读:71次「手机版」
 

二周

【中英】【吴恩达课后测验】Course 4 -卷积神经网络 - 第二周测验


参考1:卷积神经网络Quiz2

参考2:quiz.md


上一篇:【课程4 - 第一周编程作业】※※※※※ 【回到目录】※※※※※下一篇:【第二周编程作业】


1. Question 1

在典型的卷积神经网络中,随着网络的深度增加,你能看到的现象是?

  • 【 】 nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nW 增加,同时nC" role="presentation" style="position: relative;">nC 减少。

  • 【 】 nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nW 减少,同时 nC" role="presentation" style="position: relative;">nC 也减少。

  • 【 】 nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nW 增加,同时 nC" role="presentation" style="position: relative;">nC 也增加。

  • nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nW 减少,同时 nC" role="presentation" style="position: relative;">nC 增加。

2. Question 2

在典型的卷积神经网络中,你能看到的是?

  • 】 多个卷积层后面跟着的是一个池化层。

  • 【 】 多个池化层后面跟着的是一个卷积层。

  • 】 全连接层(FC)位于最后的几层。

  • 【 】 全连接层(FC)位于开始的几层。

3. Question 3

为了构建一个非常深的网络,我们经常在卷积层使用“valid”的填充,只使用池化层来缩小激活值的宽/高度,否则的话就会使得输入迅速的变小。

  • 【 】 True

  • 】 False

博主注:我们经常使用“SAME”的padding方式。

4. Question 4

我们使用普通的网络结构来训练一个很深的网络,要使得网络适应一个很复杂的功能(比如增加层数),总会有更低的训练误差。

  • 【 】 True

  • 】 False

博主注:在没有残差的普通神经网络中,理论上是误差越来越低的,但是实际上是随着网络层数的加深,先减小再增加;在有残差的ResNet中,即使网络再深,训练误差都会随着网络层数的加深逐渐减小。

5. Question 5

下面计算残差(ResNet)块的公式中,横线上应该分别填什么?

a[l+2]=g(W[l+2]g(W[l+1]al+b[l+1])+b[l+2]+?_ )+?_" role="presentation">a[l+2]=g(W[l+2]g(W[l+1]al+b[l+1])+b[l+2]+?_)+?_

  • 【 】 分别是 0" role="presentation" style="position: relative;">0z[l+1]" role="presentation" style="position: relative;">z[l+1]

  • 】 分别是 a[l]" role="presentation" style="position: relative;">a[l]0" role="presentation" style="position: relative;">0

  • 【 】 分别是 z[l]" role="presentation" style="position: relative;">z[l]a[l]" role="presentation" style="position: relative;">a[l]

  • 【 】 分别是 0" role="presentation" style="position: relative;">0a[l]" role="presentation" style="position: relative;">a[l]

博主注:推导一下公式就好了。

(1.0)a[l+2]=g(z[l+2]+a[l])(1.1)=g(W[l+2]×a[l+1]+b[l+2]+a[l])(1.2)=g(W[l+2]×g(z[l+1])+b[l+2]+a[l])(1.3)=g(W[l+2]×g(W[l+1]×a[l]+b[l+1])+b[l+2]+a[l]_)+0_" role="presentation">(1.0)a[l+2]=g(z[l+2]+a[l])(1.1)=g(W[l+2]×a[l+1]+b[l+2]+a[l])(1.2)=g(W[l+2]×g(z[l+1])+b[l+2]+a[l])(1.3)=g(W[l+2]×g(W[l+1]×a[l]+b[l+1])+b[l+2]+a[l]_)+0_

6. Question 6

关于残差网络下面哪个(些)说法是正确的?

  • 【 】 使用跳越连接能够对反向传播的梯度下降有益且能够帮你对更深的网络进行训练。

  • 】 跳跃连接计算输入的复杂的非线性函数以传递到网络中的更深层。

  • 【 】 有L层的残差网络一共有L2" role="presentation" style="position: relative;">L2种跳跃连接的顺序。

  • 】 跳跃连接能够使得网络轻松地学习残差块类的输入输出间的身份映射。

    博主注:请参考这里

7. Question 7

假设你的输入的维度为64x64x16,单个1x1的卷积过滤器含有多少个参数(包括偏差)?

  • 【 】 2

  • 】 17

  • 【 】 4097

  • 【 】 1

8. Question 8

假设你有一个维度为nH×nW×nC" role="presentation" style="position: relative;">nH×nW×nC的卷积输入,下面哪个说法是正确的(假设卷积层为1x1,步伐为1,padding为0)?

  • 】 你能够使用1x1的卷积层来减少nC" role="presentation" style="position: relative;">nC,但是不能减少 nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nW

  • 】 你可以使用池化层减少 nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nW,但是不能减少 nC" role="presentation" style="position: relative;">nC

  • 【 】 你可以使用一个1x1的卷积层来减少nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nWnC" role="presentation" style="position: relative;">nC.

  • 【 】 你可以使用池化层减少 nH" role="presentation" style="position: relative;">nHnW" role="presentation" style="position: relative;">nWnC" role="presentation" style="position: relative;">nC.

9. Question 9

关于 inception 网络下面哪些说法是正确的

  • 【 】 Inception 网络包含了各种网络的体系结构(类似于随机删除节点模式,它会在每一步中随机选择网络的结构),因此它具有随机删除节点的正则化效应。

  • 】 Inception 块通常使用1x1的卷积来减少输入卷积的大小,然后再使用3x3和5x5的卷积。

  • 】 一个inception 块允许网络使用1x1, 3x3, 5x5 的和卷积个池化层的组合。

  • 【 】 通过叠加inception块的方式让inception 网络更深不会损害训练集的表现。

10. Question 10

下面哪些是使用卷积网络的开源实现(包含模型/权值)的常见原因?

  • 【 】 为一个计算机视觉任务训练的模型通常可以用来数据扩充,即使对于不同的计算机视觉任务也是如此。

  • 】 为一个计算机视觉任务训练的参数通常对其他计算机视觉任务的预训练是有用的。

  • 】 使用获得计算机视觉竞赛奖项的相同的技术,广泛应用于实际部署。

  • 】 使用开源实现可以很简单的来实现复杂的卷积结构。


1. Question 1

Which of the following do you typically see as you move to deeper layers in a ConvNet?

  • [ ] nH" role="presentation" style="position: relative;">nHand nW" role="presentation" style="position: relative;">nW increases, while nC" role="presentation" style="position: relative;">nC decreases

  • [ ] nH" role="presentation" style="position: relative;">nHand nW" role="presentation" style="position: relative;">nW decreases, while nC" role="presentation" style="position: relative;">nC also decreases

  • [ ] nH" role="presentation" style="position: relative;">nHand nW" role="presentation" style="position: relative;">nW increases, while nC" role="presentation" style="position: relative;">nC also increases

  • [x] nH" role="presentation" style="position: relative;">nHand nW" role="presentation" style="position: relative;">nW decrease, while nC" role="presentation" style="position: relative;">nC increases

2. Question 2

Which of the following do you typically see in a ConvNet? (Check all that APPly.)

  • [x] Multiple CONV layers followed by a POOL layer

  • [ ] Multiple POOL layers followed by a CONV layer

  • [x] FC layers in the last few layers

  • [ ] FC layers in the first few layers

3. Question 3

In order to be able to build very deep networks, we usually only use pooling layers to downsize the height/width of the activation volumes while convolutions are used with “valid” padding. Otherwise, we would downsize the input of the model too quickly.

  • [ ] True

  • [x] False

小傻瓜

4. Question 4

Training a deeper network (for example, adding additional layers to the network) allows the network to fit more complex functions and thus almost always results in lower training ERROR. For this question, assume we’re referring to “plain” networks.

  • [ ] True

  • [x] False

5. Question 5

The following equation captures the computation in a ResNet block. What goes into the two blanks(?) above?

  • [ ] 0 andz[l+1]" role="presentation" style="position: relative;">z[l+1], respectively

  • [x] a[l]" role="presentation" style="position: relative;">a[l] and 0, respectively

  • [ ] z[l]" role="presentation" style="position: relative;">z[l]and a[l]" role="presentation" style="position: relative;">a[l], respectively

  • [ ] 0 and a[l]" role="presentation" style="position: relative;">a[l], respectively

6. Question 6

Which ones of the following statements on Residual Networks are true? (Check all that apply.)

  • [ ] Using a skip-connection helps the gradient to backpropagate and thus helps you to train deeper networks

  • [x] The skip-connections compute a complex non-linear function of the input to pass to a deeper layer in the network.

  • [ ] A ResNet with L layers would have on the order of skip connections in total.

  • [x] The skip-connection makes it easy for the network to learn an identity mapping between the input and the output within the ResNet block.

7. Question 7

Suppose you have an input volume of dimension 64x64x16. How many parameters would a single 1x1 convolutional filter have (including the bias)?

  • [ ] 2

  • [ ] 17

  • [x] 4097

  • [ ] 1

64x64x1 + 1 = 4097

8. Question 8

Suppose you have an input volume of dimension . Which of the following statements you agree with? (Assume that “1x1 convolutional layer” below always uses a stride of 1 and no padding.)

  • [ ] You can use a 1x1 convolutional layer to reduce nC" role="presentation" style="position: relative;">nC but not nH" role="presentation" style="position: relative;">nH, nW" role="presentation" style="position: relative;">nW.

  • [x] You can use a pooling layer to reduce nH" role="presentation" style="position: relative;">nH, nW" role="presentation" style="position: relative;">nW, but not nC" role="presentation" style="position: relative;">nC.

  • [x] You can use a 1x1 convolutional layer to reduce nH" role="presentation" style="position: relative;">nH, nW" role="presentation" style="position: relative;">nW, and nC" role="presentation" style="position: relative;">nC.

  • [ ] You can use a pooling layer to reduce nH" role="presentation" style="position: relative;">nH, nW" role="presentation" style="position: relative;">nW, and nC" role="presentation" style="position: relative;">nC.

9. Question 9

Which ones of the following statements on Inception Networks are true? (Check all that apply.)

  • [ ] Inception networks incorporates a variety of network architectures (similar to dropout, which randomly chooses a network architecture on each step) and thus has a similar regularizing effect as dropout.

  • [x] Inception blocks usually use 1x1 convolutions to reduce the input data volume’s size before applying 3x3 and 5x5 convolutions.

  • [x] A single inception block allows the network to use a combination of 1x1, 3x3, 5x5 convolutions and pooling.

  • [x] Making an inception network deeper (by stacking more inception blocks together) should not hurt training set performance.

10. Question 10

Which of the following are common reasons for using open-source implementations of ConvNets (both the model and/or weights)? Check all that apply.

  • [ ] A model trained for one computer vision task can usually be used to perform data augmentation even for a different computer vision task.

  • [x] Parameters trained for one computer vision task are often useful as pretraining for other computer vision tasks.

  • [x] The same techniques for winning computer vision competitions, such as using multiple crops at test time, are widely used in practical deployments (or production system deployments) of ConvNets.

  • [x] It is a convenient way to get working an implementation of a complex ConvNet architecture.

Please refer to http://blog.csdn.net/koala_tree/article/details/78531398 and http://blog.csdn.net/nichengwuxiao/article/details/78709725 for further information.

文章最后发布于: 2018-05-04 11:53:31

相关阅读

ToPY-用于拓扑优化的开源PYTHON框架

ToPY-用于拓扑优化的开源PYTHON框架 拓扑优化是几何优化的新方向。 为参数优化,形状优化提供了新的思路。 所谓拓扑优化,是指优化过

吉他效果器-削波失真

转载:https://www.jitashe.org/thread/1303602/ 1、失真:失真的原理都是通过对信号的大量增益,让线路达到饱和,从而实现非线性放大并

吴伯凡-认知方法论-如何做到真正的反思

西塞罗的《论老年》中有一段话一直回荡在耳边“我不会拒绝从头到尾把生活再过一遍,只是希望能够获得唯有作家才能获得的特权,在再版

cp -d指令

-d:若源文件为连接文件杜属性,则复制连接文件属性而非文件本身。 例如: 1、 root@ubuntu:/tmp# cp -s bashrc bashrc_slink #建

论文解析 - SLAM++: Simultaneous Localisation and M

SLAM++: Simultaneous Localisation and Mapping at the Level of Objects 0. 论文概况 引用:331, CVPR2013 Renato F. Salas-Mor

分享到:

栏目导航

推荐阅读

热门阅读