Stoch-predict-with-Tranformer-LSTM icon indicating copy to clipboard operation
Stoch-predict-with-Tranformer-LSTM copied to clipboard

stock predict with MLP,CNN,RNN,LSTM,Transformer and Transformer-LSTM

Results 3 Stoch-predict-with-Tranformer-LSTM issues
Sort by recently updated
recently updated
newest added

您好,我想请教一下LSTM、Transformer、Transformer-LSTM如何训练? ![image](https://github.com/gangweiX/Stoch-predict-with-Tranformer-LSTM/assets/39398991/0b3e7de4-5b4d-408c-b4ae-63eb6cf5f011) 报错如下: ![image](https://github.com/gangweiX/Stoch-predict-with-Tranformer-LSTM/assets/39398991/d511fb9b-b911-4451-beff-bedc63de127b) ![image](https://github.com/gangweiX/Stoch-predict-with-Tranformer-LSTM/assets/39398991/abc01a91-8422-4c6b-8a28-406087c4dee8) 希望您能回答一下,谢谢!

if you look at the positionencoding + X , the diemension is different, it can't be added: \models.py", line 137, in forward return x + self.pe[:x.size(0), :] RuntimeError: The size...

训练时 data_x = data.unsqueeze(2) data_tran = data_x.transpose(0,1)这两步是为了将data_x输入 encoder吗,为什么测试时就没有data_tran = data_x.transpose(0,1)呢