Skip to content

Error found at line 113#155

Open
virubiotor wants to merge 1 commit into
pybrain:masterfrom
virubiotor:patch-2
Open

Error found at line 113#155
virubiotor wants to merge 1 commit into
pybrain:masterfrom
virubiotor:patch-2

Conversation

@virubiotor

Copy link
Copy Markdown

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.

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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