プリンキピア

第7章畳み込みニューラルネットワーク

7.5.5. Exercises7.5.5 練習問題

  1. Implement average pooling through a convolution.
    英語のヒント
    畳み込みを使って平均プーリングを実装せよ。
  2. Prove that max-pooling cannot be implemented through a convolution alone.
    英語のヒント
    最大プーリングは畳み込みだけでは実装できないことを証明せよ。
  3. Max-pooling can be accomplished using ReLU operations, i.e., ReLU(x)=max(0,x).
    英語のヒント
    最大プーリングは、ReLUの演算、つまりReLU(x)=max(0,x)を使って実現できる。
    1. Express max(a,b) by using only ReLU operations.
      英語のヒント
      ReLUの演算だけを使ってmax(a,b)を表せ。
    2. Use this to implement max-pooling by means of convolutions and ReLU layers.
      英語のヒント
      これを使って、畳み込みとReLU層によって最大プーリングを実装せよ。
    3. How many channels and layers do you need for a 2×2 convolution? How many for a 3×3 convolution?
      英語のヒント
      2×2の畳み込みには、いくつのチャネルと層が必要か。3×3の畳み込みではいくつか。
  4. What is the computational cost of the pooling layer? Assume that the input to the pooling layer is of size c×h×w, the pooling window has a shape of ph×pw with a padding of (ph,pw) and a stride of (sh,sw).
    英語のヒント
    プーリング層の計算の費用はどれだけか。プーリング層への入力の大きさはc×h×wで、プーリングの窓の形状はph×pw、パディングは(ph,pw)、ストライドは(sh,sw)とする。
  5. Why do you expect max-pooling and average pooling to work differently?
    英語のヒント
    最大プーリングと平均プーリングが違う働きをすると予想されるのはなぜか。
  6. Do we need a separate minimum pooling layer? Can you replace it with another operation?
    英語のヒント
    別に最小プーリング層は必要か。それを別の演算で置き換えられるか。
  7. We could use the softmax operation for pooling. Why might it not be so popular?
    英語のヒント
    プーリングにソフトマックス演算を使うこともできる。それがあまり使われないのはなぜだろうか。