-
Notifications
You must be signed in to change notification settings - Fork 606
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2.11 - update for cmdstanr v0.0.0.9006
-fixes deprecated stuff in latest cmdstanr. this breaks my old exe caching code, so will need to figure out a new way to accomplish that.
- Loading branch information
Richard McElreath
committed
Jun 26, 2020
1 parent
a6d2438
commit 89b3e63
Showing
3 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1410,11 +1410,11 @@ ulam <- function( flist , data , pars , pars_omit , start , chains=1 , cores=1 , | |
filex <- cmdstanr_model_write( model_code ) | ||
mod <- cmdstan_model( | ||
stan_file=filex[[1]], | ||
exe_file=filex[[2]], | ||
# exe_file=filex[[2]], | ||
compile=filex[[3]], | ||
cpp_options=list(stan_threads=TRUE) ) | ||
set_num_threads( threads ) | ||
cmdstanfit <- mod$sample( data=data , chains=chains , cores=cores , iter_sampling=iter , adapt_delta=as.numeric(control[['adapt_delta']]) , ... ) | ||
# set_num_threads( threads ) | ||
cmdstanfit <- mod$sample( data=data , chains=chains , parallel_chains=cores , iter_sampling=iter , adapt_delta=as.numeric(control[['adapt_delta']]) , threads_per_chain=threads , ... ) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
rmcelreath
Owner
|
||
stanfit <- rstan::read_stan_csv(cmdstanfit$output_files()) | ||
} | ||
} else | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rmcelreath sorry we keep deprecating stuff in CmdStanR! We're getting close to beta release, after which deprecation should be rare. Glad you're going to offer CmdStanR as a backend!