Deep-Time-Series-Prediction icon indicating copy to clipboard operation
Deep-Time-Series-Prediction copied to clipboard

Operation error

Open dpoqb opened this issue 4 years ago • 3 comments

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)

dpoqb avatar Jan 21 '21 07:01 dpoqb

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

WYCAS avatar Sep 25 '21 12:09 WYCAS

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

LadiesMan924 avatar Jun 14 '22 07:06 LadiesMan924

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

linabh avatar Sep 29 '22 14:09 linabh