-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
incorrect timing report #303
Comments
Note that in general what I'm also curious why |
Thanks @yizhang-yiz!
The reasoning was mainly because pre-2.24 cmdstan did not report wall time but rather CPU time and the cmdstan timing does not include reading the input data. In 2.24 we switched to wall time so I would not oppose to moving to just parsing CSV reported times. I/O time not being included also probably only has a marginal effect on execution time in the majority of cases. And those that care for I/O can Sys.time() the $sample() call. @jgabry what do you think? |
So times not matching is "by design" and the main design reason is gone, so I am happy to move that back. The fixed_param not working is a bug that we can fix easily or will be gone if we decide to switch to parsing CSV. |
Yeah that sounds good to me. |
Describe the bug
fit$time()
reports wrong elapsed time. It is significantly different from csv. More importantly, it reportsNA
for sampling time whenfixed_param=TRUE
is used.To Reproduce
Use
radon
example from posteriordb(I've ported it here: https://github.com/metrumresearchgroup/cmdstan/tree/cross_chain_warmup/examples/radon)CSV file output:
Expected behavior
When
fixed_param=TRUE
, I expect warmup time = 0, while post-warmup time > 0. I also expect them consistent with what's reported in csv.Operating system
The text was updated successfully, but these errors were encountered: