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

limiting the number of excursion in an iterator #177

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mducoffe
Copy link

No description provided.

@dwf
Copy link
Contributor

dwf commented Jun 22, 2015

Can you provide an example of where you might use this? It seems like most schemes provide a way to limit the number of returned batches/examples automatically based on their constructor arguments.

@mducoffe
Copy link
Author

When evaluating on the validation set I would like to use a random subset
of the minibatches using this iterator and ShuffledScheme. Like that I can
have a rough idea of the performance when trying the hyperparameters

2015-06-22 16:12 GMT-04:00 David Warde-Farley [email protected]:

Can you provide an example of where you might use this? It seems like most
schemes provide a way to limit the number of returned batches/examples
automatically based on their constructor arguments.


Reply to this email directly or view it on GitHub
#177 (comment).

@dwf
Copy link
Contributor

dwf commented Jun 22, 2015

Okay. The name could probably be better too -- it's unclear in what way it would be "limited". Perhaps "TruncatedEpochScheme"? @rizar might have an opinion.

@vdumoulin
Copy link
Contributor

I'd be okay with TruncatedEpochScheme.

"""Iterate over the sequence given an iterationScheme object
but in a limited number of excursions defined by times
"""
def __init__(self, iteration_scheme, times, *args, **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

You can safely remove *args, **kwargs. It's used in other iterators (e.g. ShuffledExampleScheme) to pass arbitrary args and kwargs to the superclass' __init__ method, but in this case you're not calling any other __init__ method.

@vdumoulin
Copy link
Contributor

@mducoffe I'm doing a cleanup of the open PRs. Would you still like to go ahead with this one?

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.

3 participants