EvilPsyCHo / Deep-Time-Series-Prediction

Seq2Seq, Bert, Transformer, WaveNet for time series prediction.
564 stars 79 forks source link

Operation error #8

Open dpoqb opened 3 years ago

dpoqb commented 3 years ago

ValueError Traceback (most recent call last)

in 44 # train model 45 wave_learner = Learner(wave, opt, root_dir="./wave", ) ---> 46 wave_learner.fit(max_epochs=epoch, train_dl=train_dl, valid_dl=valid_dl, early_stopping=True, patient=16) 47 48 # load best model /wangjin_fix/student_space/sw/Deep-Time-Series-Prediction-master/deepseries/train.py in fit(self, max_epochs, train_dl, valid_dl, early_stopping, patient, start_save) 68 self.model.train() 69 train_loss = 0 ---> 70 for j, (x, y) in enumerate(train_dl): 71 self.optimizer.zero_grad() 72 loss = self.model.batch_loss(x, y) ValueError: too many values to unpack (expected 2)
WYCAS commented 3 years ago

Hello,I got the same problem.Have you sovled this problem? thx !!!

LadiesMan924 commented 2 years ago

I also encountered the same problem. Who knows what the problem is?

linabh commented 2 years ago

try for j, (x, y, _) in enumerate(train_dl):