問題:
ある時刻 \(t\) での入力ベクトルが \(\mathbf{x}_t = [1.0, 0.5]^T\)、前の時刻 \(t-1\) の隠れ状態が \(\mathbf{h}_{t-1} = [0.2, -0.1]^T\) です。重み行列が \(\mathbf{W}_x = \begin{pmatrix} 0.5 & 0.1 \\ -0.2 & 0.3 \end{pmatrix}\)、\(\mathbf{W}_h = \begin{pmatrix} 0.2 & -0.1 \\ 0.1 & 0.4 \end{pmatrix}\)、バイアスが \(\mathbf{b} = [0.1, 0.1]^T\) とします。活性化関数が tanh の場合、現在の隠れ状態 \(\mathbf{h}_t = \tanh(\mathbf{W}_x \mathbf{x}_t + \mathbf{W}_h \mathbf{h}_{t-1} + \mathbf{b})\) の最初の要素を計算してください。結果は小数点以下3桁まで求めてください。(\( \tanh(0.7) \approx 0.604 \))
5秒後に問題演習ページにリダイレクトします。
今すぐ問題に挑戦