第9章リカレントニューラルネットワーク
9.4.1. Neural Networks without Hidden States9.4.1 隠れ状態のないニューラルネットワーク
Let’s take a look at an MLP with a single hidden layer. Let the hidden layer’s activation function be . Given a minibatch of examples with batch size and inputs, the hidden layer output is calculated as
英語のヒント
隠れ層が一つのMLPを見てみよう。隠れ層の活性化関数をとする。バッチサイズ、入力の数の事例のミニバッチが与えられたとき、隠れ層の出力は次のように計算される。
(9.4.3)
In (9.4.3), we have the weight parameter , the bias parameter , and the number of hidden units , for the hidden layer. So armed, we apply broadcasting (see Section 2.1.4) during the summation. Next, the hidden layer output is used as input of the output layer, which is given by
英語のヒント
(9.4.4)
where is the output variable, is the weight parameter, and is the bias parameter of the output layer. If it is a classification problem, we can use to compute the probability distribution of the output categories.
英語のヒント
ここで、は出力変数、は重みパラメータ、は出力層のバイアスパラメータである。分類問題なら、を使って出力のカテゴリーの確率分布を計算できる。
This is entirely analogous to the regression problem we solved previously in Section 9.1, hence we omit details. Suffice it to say that we can pick feature-label pairs at random and learn the parameters of our network via automatic differentiation and stochastic gradient descent.
英語のヒント
これは前に9.1節で解いた回帰問題とまったく同じなので、詳細は省く。特徴量とラベルの組をランダムに選び、自動微分と確率的勾配降下法によってネットワークのパラメータを学習できる、と言えば十分である。