$y_i = \begin{cases} y_i^* & \text{if } y_i^* > 0 \\ 0 & \text{if } y_i^* \le 0 \end{cases}$
$$ 隐藏输出\\mathbf{H}*t = \phi(\mathbf{X}\*t \mathbf{W}\*{xh} + \mathbf{H}*{t-1} \mathbf{W}_{hh} + \mathbf{b}_h).\ 输出\ \mathbf{O}_t = \mathbf{H}*t \mathbf{W}*{hq} + \mathbf{b}_q. $$
import numpy as np
import os