ä¸è¨ã¯ãæ®éã® RNN ã®åé²ãã¹ã®ä»æ§ã決ãã¾ãããã®ããã® RNN ã®ãã©ã¡ã¼ã¿ã¯ãï¼ã¤ã®è¡å $W_{hh}, W_{xh}, W_{hy}$ ã§ããé ãç¶æ $self.h$ ã¯ãã¼ããã¯ãã«ã§åæåããã¾ãã$np.tanh$ é¢æ°ã¯ã¢ã¯ãã£ãã¼ã·ã§ã³ã $[-1, 1]$ ã®ç¯å²ã«æ¼ãã¤ã¶ããéç·å½¢æ§ãå®ç¾ãã¾ããã©ã®ããã«ä½ç¨ããã®ãç°¡åã«è¿°ã¹ãã¨ï¼tanh å ã«ï¼ã¤ã®é ãããã¾ãï¼ä¸æ¹ã¯åã®é ãç¶æ ã«åºã¥ããä»æ¹ã¯ç¾å¨ã®å ¥åã«åºã¥ãã¾ããnumpy ã® $np.dot$ ã¯è¡åã®æãç®ã§ããï¼ã¤ã®ä¸éé ã¯å ç®ãããtanh ã«ããæ°ããªç¶æ ãã¯ãã«ã«æ¼ãã¤ã¶ããã¾ããæ°å¦ã®è¡¨è¨ã«æ £ãã¦ãããªããé ãç¶æ ã®æ´æ°ã¯ä»¥ä¸ã®ããã«è¨è¿°å¯è½ã§ãã$h_t = \tanh ( W_{hh} h_{t-1} + W_{xh} x_t )$ ããã㧠tanh ã¯è¦ç´ ãã¨ã«é©ç¨ããã¾ãã
{{#tags}}- {{label}}
{{/tags}}