深度学习Course2第二周Hyperparameter tuning, Batch Normalization, Programming Frameworks习题整理

Hyperparameter tuning, Batch Normalization, Programming Frameworks

  1. Which of the following are true about hyperparameter search?
  • Choosing values in a grid for the hyperparameters is better when the number of hyperparameters to tune is high since it provides a more ordered way to search.
  • When sampling from a grid, the number of values for each hyperparameter is larger than when using random values.
  • When using random values for the hyperparameters they must be always uniformly distributed.
  • Choosing random values for the hyperparameters is convenient since we might not know in advance which hyperparameters are more important for the problem at hand.
  1. If it is only possible to tune two parameters from the following due to limited computational resources. Which two would you choose?
  • β1 , β2 in Adam.
  • α
  • ϵ in Adam.
  • The β parameter of the momentum in gradient descent.
  1. Using the “Panda” strategy, it is possible to create several models. True/False?
  • False
  • True
  1. If you think β \beta β (hyperparameter for momentum) is between 0.9 and 0.99, which of the following is the recommended way to sample a value for beta?
  • r = np.random.rand()
    beta = r*0.9 + 0.09
  • r = np.random.rand()
    beta = 1-10**(- r - 1)
  • r = np.random.rand()
    beta = 1-10**(- r + 1)
  • r = np.random.rand()
    beta = r*0.09 + 0.9
  1. Finding good hyperparameter values is very time-consuming. So typically you should do it once at the start of the project, and try to find very good hyperparameters so that you don’t ever have to tune them again. True or false?
  • False
  • True
  1. When using batch normalization it is OK to drop the parameter W [ l ] W^{[l]} W[l] from the forward propagation since it will be subtracted out when we compute z ~ normalize [ l ] \tilde{z}^{[l]}_{\text{normalize}} z~normalize[l]= β [ l ]   z ^ [ l ] \beta^{[l]} \, \hat{z}^{[l]} β[l]z^[l]+ γ [ l ] \gamma^{[l]} γ[l]. True/False?
  • True
  • False
  1. In the normalization formula z n o r m ( i ) = z ( i ) − μ σ 2 + ε z_{norm}^{(i)} = \frac{z^{(i)} - \mu}{\sqrt{\sigma^2 + \varepsilon}} znorm(i)=σ2+ε z(i)μ , why do we use epsilon?
  • To speed up convergence
  • To have a more accurate normalization
  • In case μ μ μ is too small
  • To avoid division by zero
  1. **Which of the following statements about γ \gamma γ and β \beta β in Batch Norm are true? **
  • They set the mean and variance of the linear variable z ^ [ l ] \hat{z}^{[l]} z^[l] of a given layer.
  • There is one global value of γ ∈ R γ∈R γR and one global value of β ∈ R β∈R βR for each layer, and these apply to all the hidden units in that layer.
  • The optimal values are γ = σ 2 + ε γ=\sqrt{σ2+ε} γ=σ2+ε , and β = μ β=μ β=μ.
  • They can be learned using Adam, Gradient descent with momentum, or RMSprop, not just with gradient descent.
  • β β β and γ γ γ are hyperparameters of the algorithm, which we tune via random sampling.
  1. A neural network is trained with Batch Norm. At test time, to evaluate the neural network on a new example you should perform the normalization using μ \mu μ and σ 2 \sigma^2 σ2 estimated using an exponentially weighted average across mini-batches seen during training. True/false?
  • True
  • False
  1. Which of the following are some recommended criteria to choose a deep learning framework?
  • It must be implemented in C to be faster.
  • It must run exclusively on cloud services, to ensure its robustness.
  • It must use Python as the primary language.
  • Running speed.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

l8947943

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值