第5章多層パーセプトロン
5.2.4. Exercises5.2.4 練習問題
- Change the number of hidden units
num_hiddensand plot how its number affects the accuracy of the model. What is the best value of this hyperparameter?英語のヒント
隠れユニットの数num_hiddensを変えて、その数がモデルの正解率にどう影響するかをプロットせよ。このハイパーパラメータの最良の値はいくつか。 - Try adding a hidden layer to see how it affects the results.
英語のヒント
隠れ層を加えてみて、それが結果にどう影響するかを見よ。 - Why is it a bad idea to insert a hidden layer with a single neuron? What could go wrong?
英語のヒント
ニューロンが一つしかない隠れ層を挿入するのは、なぜよくない考えなのか。何がまずくなりうるか。 - How does changing the learning rate alter your results? With all other parameters fixed, which learning rate gives you the best results? How does this relate to the number of epochs?
英語のヒント
学習率を変えると、結果はどう変わるか。ほかのパラメータをすべて固定したとき、どの学習率が最良の結果を与えるか。それはエポック数とどう関係するか。 - Let’s optimize over all hyperparameters jointly, i.e., learning rate, number of epochs, number of hidden layers, and number of hidden units per layer.
英語のヒント
すべてのハイパーパラメータ、つまり学習率、エポック数、隠れ層の数、層ごとの隠れユニットの数について、まとめて最適化してみよう。- What is the best result you can get by optimizing over all of them?
英語のヒント
それらすべてについて最適化して得られる最良の結果はどれだけか。 - Why it is much more challenging to deal with multiple hyperparameters?
英語のヒント
複数のハイパーパラメータを扱うのがずっと難しいのはなぜか。 - Describe an efficient strategy for optimizing over multiple parameters jointly.
英語のヒント
複数のパラメータについてまとめて最適化するための、効率的な戦略を述べよ。
- Compare the speed of the framework and the from-scratch implementation for a challenging problem. How does it change with the complexity of the network?
英語のヒント
難しい問題について、フレームワークによる実装とゼロからの実装の速さを比べよ。ネットワークの複雑さによって、それはどう変わるか。 - Measure the speed of tensor–matrix multiplications for well-aligned and misaligned matrices. For instance, test for matrices with dimension 1024, 1025, 1026, 1028, and 1032.
英語のヒント
きちんとそろった行列とずれた行列について、テンソルと行列の掛け算の速さを測れ。たとえば、次元が1024、1025、1026、1028、1032の行列で試せ。- How does this change between GPUs and CPUs?
英語のヒント
GPUとCPUのあいだで、これはどう変わるか。 - Determine the memory bus width of your CPU and GPU.
英語のヒント
自分のCPUとGPUのメモリバス幅を調べよ。
- Try out different activation functions. Which one works best?
英語のヒント
さまざまな活性化関数を試せ。どれが最もうまく働くか。 - Is there a difference between weight initializations of the network? Does it matter?
英語のヒント
ネットワークの重みの初期化のしかたによって違いはあるか。それは重要か。