Skip to content
New issue

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

Operation error #8

Open
dpoqb opened this issue Jan 21, 2021 · 3 comments
Open

Operation error #8

dpoqb opened this issue Jan 21, 2021 · 3 comments

Comments

@dpoqb
Copy link

dpoqb commented Jan 21, 2021

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
Copy link

WYCAS commented Sep 25, 2021

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

@LadiesMan924
Copy link

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

@linabh
Copy link

linabh commented Sep 29, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants