-
Notifications
You must be signed in to change notification settings - Fork 5
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
Testing permissible range when in theory when there is no upper limit? #66
Comments
The quick answer: I was avoiding having to think about this. One possible route would be to have some phrase like "should generally be less than X", which Note, however, that current implementation of |
Yes, something like that could work at least for the time being. The problem I see in this solution is that X can still depend on lots of things so it is actually difficult to define even general X. For example, in particle-MCMC, the total number of stored samples depends on multiple arguments and the model size, which then affect the realistic upper bound for the number of iterations. But yeah, I can see myself writing something along the lines "This parameter affects the run time and should be generally less than 1e6 (depending on the model and other sampling parameters) at least for initial testing". I'll think about this as well, one solution could be some kind of tag |
@helske The above commit sets up the Lines 150 to 151 in 2b2c824
That should cover most cases (although it does require limits to be given as integers and not words). Next few commits will actually implement it. |
That restricts the actual ranges tested to the specified values, rather than previous default of +/- .Machine.max
@helske That should now catch your case, but I'll re-open in order to:
|
This is more of a question, what would be the correct way to document a positive integer argument that can in theory get arbitrarily large values, but that will also increase computation time and memory requirements so that in practice there is some upper limit which depends, not only on the computational resources but on other parameters? For example in my case the number of particles in the particle filter, where the upper limit depends on how big your model is, how much memory you have and long you are willing to wait.
The text was updated successfully, but these errors were encountered: