プリンキピア

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

7.6.4. Exercises7.6.4 練習問題

  1. Let’s modernize LeNet. Implement and test the following changes:
    英語のヒント
    LeNetを現代化しよう。次の変更を実装して試せ。
    1. Replace average pooling with max-pooling.
      英語のヒント
      平均プーリングを最大プーリングで置き換えよ。
    2. Replace the softmax layer with ReLU.
      英語のヒント
      ソフトマックス層をReLUで置き換えよ。
  2. Try to change the size of the LeNet style network to improve its accuracy in addition to max-pooling and ReLU.
    英語のヒント
    最大プーリングとReLUに加えて、LeNet風のネットワークの大きさを変えて、正解率を上げてみよ。
    1. Adjust the convolution window size.
      英語のヒント
      畳み込みの窓の大きさを調整せよ。
    2. Adjust the number of output channels.
      英語のヒント
      出力チャネルの数を調整せよ。
    3. Adjust the number of convolution layers.
      英語のヒント
      畳み込み層の数を調整せよ。
    4. Adjust the number of fully connected layers.
      英語のヒント
      全結合層の数を調整せよ。
    5. Adjust the learning rates and other training details (e.g., initialization and number of epochs).
      英語のヒント
      学習率やそのほかの訓練の細部(たとえば初期化やエポック数)を調整せよ。
  3. Try out the improved network on the original MNIST dataset.
    英語のヒント
    改良したネットワークを、元のMNISTデータセットで試してみよ。
  4. Display the activations of the first and second layer of LeNet for different inputs (e.g., sweaters and coats).
    英語のヒント
    さまざまな入力(たとえばセーターとコート)について、LeNetの1番目と2番目の層の活性を表示せよ。
  5. What happens to the activations when you feed significantly different images into the network (e.g., cats, cars, or even random noise)?
    英語のヒント
    まったく異なる画像(たとえば猫、車、あるいは無作為なノイズさえ)をネットワークに入れると、活性はどうなるか。