プリンキピア

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

7.2.8. Exercises7.2.8 練習問題

  1. Construct an image X with diagonal edges.
    英語のヒント
    斜めの縁をもつ画像Xを作れ。
    1. What happens if you apply the kernel K in this section to it?
      英語のヒント
      この節のカーネルKをそれに当てはめると何が起きるか。
    2. What happens if you transpose X?
      英語のヒント
      Xを転置すると何が起きるか。
    3. What happens if you transpose K?
      英語のヒント
      Kを転置すると何が起きるか。
  2. Design some kernels manually.
    英語のヒント
    いくつかのカーネルを手作業で設計せよ。
    1. Given a directional vector 𝐯=(v1,v2), derive an edge-detection kernel that detects edges orthogonal to 𝐯, i.e., edges in the direction (v2,−v1).
      英語のヒント
      方向ベクトル𝐯=(v1,v2)が与えられたとき、𝐯に直交する縁、つまり方向(v2,−v1)の縁を検出する、縁検出のカーネルを導出せよ。
    2. Derive a finite difference operator for the second derivative. What is the minimum size of the convolutional kernel associated with it? Which structures in images respond most strongly to it?
      英語のヒント
      2階導関数のための有限差分の演算子を導出せよ。それに対応する畳み込みカーネルの最小の大きさはいくつか。画像のどんな構造がそれに最も強く反応するか。
    3. How would you design a blur kernel? Why might you want to use such a kernel?
      英語のヒント
      ぼかしのカーネルをどう設計するか。そうしたカーネルを使いたくなるのはなぜか。
    4. What is the minimum size of a kernel to obtain a derivative of order d?
      英語のヒント
      d階の導関数を得るためのカーネルの最小の大きさはいくつか。
  3. When you try to automatically find the gradient for the Conv2D class we created, what kind of error message do you see?
    英語のヒント
    作ったConv2Dクラスの勾配を自動で求めようとすると、どんなエラーメッセージが表示されるか。
  4. How do you represent a cross-correlation operation as a matrix multiplication by changing the input and kernel tensors?
    英語のヒント
    入力とカーネルのテンソルを変えることで、相互相関の演算を行列の掛け算として表すにはどうすればよいか。