Skip to content

Wondering about the lack of pattern, batches and reps arguments for tar_stan_mcmc #48

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

You must be logged in to vote

tar_stan_mcmc() deliberately blocks dynamic branching. The intent is to analyze one dataset with a small number of models and create targets for each of the output types for each model: the cmdstan fit object, summaries, draws, and HMC diagnostics.

tar_stan_mcmc_rep_sumamry() blocks pattern so there is less room for user error with dynamic branching. The only dynamic branching is tightly controlled through batches and reps.

Target factories aim to simplify the user experience for well-understood domain-specific workflows such as Bayesian data analysis. Part of this is abstracting away dynamic branching so users do not need to think about it. https://ropensci.org/blog/2021/02/03/targets/.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lucumas
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants