We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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)
The text was updated successfully, but these errors were encountered:
Hello,I got the same problem.Have you sovled this problem? thx !!!
Sorry, something went wrong.
I also encountered the same problem. Who knows what the problem is?
try for j, (x, y, _) in enumerate(train_dl):
No branches or pull requests
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)
The text was updated successfully, but these errors were encountered: