Skip to content

Commit

Permalink
Small edits to approximate inference vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
athowes committed Nov 21, 2024
1 parent f613a3c commit 182f1c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vignettes/approx-inference.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ library(tidybayes)
library(cmdstanr) # nolint
```

To access the approximate inference methods used in this vignette we will need to use the `cmdstanr` backend for `brms` (we generally recommend using this backend for fitting models). To do this, we first need to install CmdStan (see the README for more details). We can check we have everything we need as follows:
To access the approximate inference methods used in this vignette we will need to use the `cmdstanr` backend for `brms` (we generally recommend using this backend for fitting models).
To do this, we first need to install CmdStan (see the README for more details).
We can check we have everything we need as follows:

```{r}
cmdstanr::cmdstan_version()
Expand Down Expand Up @@ -262,7 +264,7 @@ pmap_df(

## Comparison of time taken

In this example, HMC took much longer than the other methods, with Pathfinder being the fastest method.
In this example, HMC took a longer time to run than the other methods and Pathfinder was the fastest running method.
That said, even for HMC the computation time in this case is unlikely to be prohibitive.

```{r}
Expand Down

0 comments on commit 182f1c9

Please sign in to comment.