Skip to content

Support for Stan model profiling? #41

Closed Answered by wlandau
mbjoseph asked this question in Help
Discussion options

You must be logged in to vote

With posterior draws and sampler diagnostics, the CmdStanFit object keeps the data in memory when the whole object is saved.

fit$draws() # Do not specify variables or inc_warmup.
try(fit$sampler_diagnostics(), silent = TRUE)
try(fit$init(), silent = TRUE)

This does not appear to be the case with profiler samples.

library(cmdstanr)
#> This is cmdstanr version 0.4.0.9000
#> - Online documentation and vignettes at mc-stan.org/cmdstanr
#> - CmdStan path set to: /Users/c240390/.cmdstanr/cmdstan-2.26.1
#> - Use set_cmdstan_path() to change the path
callr::r(function() {
  library(cmdstanr)
  mcmc_program <- wr…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@rok-cesnovar
Comment options

@jgabry
Comment options

@wlandau
Comment options

Answer selected by mbjoseph
Comment options

You must be logged in to vote
1 reply
@wlandau
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants