da-rnn
da-rnn copied to clipboard
Dual-Stage Attention-Based Recurrent Neural Net for Time Series Prediction
The paper is a NARX problem and as such, the predicted value at a time step should be used for next prediction.But here its not used.When this code is used...
With the current implementation (afaik) only a single step will be predicted. A modification for the Decoder part would be great
hi, I got this error : RuntimeError: All input tensors must be on the same device. Received cpu and cuda:0 any idea ?
Firstly, thanks for your code ,it really helps me a lot to understander the paper. But when i debug the code , i find that in modules.py seanny used tanh...
This section in predict() https://github.com/Seanny123/da-rnn/blob/8585806feee7726084bb2f733a3aaefada9c1f2f/main.py#L178-L181 should be changed to ``` with torch.no_grad(): y_history = numpy_to_tvar(y_history) _, input_encoded = t_net.encoder(numpy_to_tvar(X)) y_pred[y_slc] = t_net.decoder(input_encoded, y_history).cpu().data.numpy() ``` This is required to disable any...
I have seen that standardscaler.fit(X) is being used which which scale the entire data.But the usual practice is to fit on the training data and apply the same mean on...
[test.csv.zip](https://github.com/Seanny123/da-rnn/files/3026380/test.csv.zip) When trying to change the dataset to a different one (in this case one that is generated randomly within certain ranges, see attached) the encoding step produces only NaN...
I found that this da-rnn can only predict 'NDX'. If I try to use it to predict other colums such as 'YHOO' or 'XLNX', the results are bad. And here...
I noticed that Seanny used 10 epoch in this project.But actually the train loss is still falling . So I wanna ask you that in this project , how many...
![Uploading TIM截图20191010220050.png…]() `Traceback (most recent call last): File "D:/graduate/Code/Research/DA_RNN/Seanny123/main_predict.py", line 74, in final_y_pred = predict(enc, dec, data, **da_rnn_kwargs) File "D:/graduate/Code/Research/DA_RNN/Seanny123/main_predict.py", line 49, in predict y_pred[y_slc] = decoder(input_encoded, y_history).cpu().data.numpy() File "B:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py",...