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

For the dataset.py/init_callable, you shoul also catch Attribute error #1

Closed
lmjohns3 opened this issue Jun 3, 2015 · 0 comments
Closed

Comments

@lmjohns3
Copy link
Owner

lmjohns3 commented Jun 3, 2015

From @nkundiushuti (at lmjohns3/theanets#79):

I have implemented the Largedataset class as you recommended, and the dataset method yields this error:
AttributeError: LargeDataset instance has no attribute 'len'
In my opinion, you should also catch this error in dataset.py
try:
self.iteration_size = len(samples)
except TypeError: # has no len
If you want, I can share the LargeDataset class with you, but it's a bit particular to my problem. I have added the len attribute to return the number of batches in one dataset file which is loaded from hard drive.

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

1 participant