NLP自然语言处理之RNN--LSTM--GRU--seq2seq--attention--self attetion
1、RNN原理和数学公式"""执行#定义RNN的参数。X=[1,2]state=[0.0,0.0]w_cell_state=np.asarray([[0.1,0.2],[0.3,0.4]])w_cell_input=np.asarray([0.5,0.6])b_cell=np.asarray([0.1,-0.1])w_output=np.asarray([[1.0],[2.0]])b_output