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

Gradient exceptions for ADVI default to having no dropped gradients #1587

Closed
dustinvtran opened this issue Aug 17, 2015 · 0 comments
Closed
Assignees
Milestone

Comments

@dustinvtran
Copy link
Member

Also, even though exceptions are caught now, by default grad_samples is still 1 so a single exception causes it to halt. I think we should either make grad_samples default to 2 or to do one gradient evaluation more than whatever grad_samples is if there are exceptions.

Ben
From stan-dev.

My proposal:

Yeah I noticed that too. I didn’t want to throw down a constant threshold for the max number of dropped gradients at the time. But yeah this needs to be addressed. Thinking a bit more about it now, I’ll just submit a pull request which sets the max number to be 5*grad_samples—the intuition being that we allow 5 dropped gradients per grad_sample, and so that it still scales with the size of the mini batch.

@dustinvtran dustinvtran self-assigned this Aug 17, 2015
@syclik syclik closed this as completed in 9f9ca95 Aug 18, 2015
@syclik syclik modified the milestone: v2.9.0 Dec 4, 2015
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

2 participants