Skip to content

Commit

Permalink
Update exp_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhaixu2016 authored Nov 21, 2022
1 parent e116bbc commit e1bfb66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exp/exp_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def train(self, setting):
if self.args.output_attention:
outputs = self.model(batch_x, batch_x_mark, dec_inp, batch_y_mark)[0]
else:
outputs = self.model(batch_x, batch_x_mark, dec_inp, batch_y_mark, batch_y)
outputs = self.model(batch_x, batch_x_mark, dec_inp, batch_y_mark)

f_dim = -1 if self.args.features == 'MS' else 0
outputs = outputs[:, -self.args.pred_len:, f_dim:]
Expand Down Expand Up @@ -315,4 +315,4 @@ def predict(self, setting, load=False):

np.save(folder_path + 'real_prediction.npy', preds)

return
return

0 comments on commit e1bfb66

Please sign in to comment.