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

Error found at line 113 #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

virubiotor
Copy link

The error given is: ValueError too many values to unpack. I solved this adding another parameter to the for loop.

The error given is: ValueError too many values to unpack. I solved this adding another parameter to the for loop.
@@ -110,7 +110,7 @@ def train(self):
piecenet.sortModules()

dataset = UnsupervisedDataSet(rbm.hiddenDim)
for sample, in self.dataset:
for sample,somevar in self.dataset:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you don't use variable, and this variable is needed to unpack, then you'd better use underscore.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes but somehow it was not supported by my python version. I dont know if its just my problem or a problem based on python compatibility

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, that it should looks: for sample, _ in self.dataset:.

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

Successfully merging this pull request may close these issues.

2 participants