Skip to content

Commit

Permalink
Fix location of samples
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Nov 5, 2024
1 parent 64e7c98 commit f381b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/sample.R
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ initial_parameters <- function(initial, model, rng, call = NULL) {
## Heuristic here; sample from the last 5% of the chain or 20
## points, whichever is smaller - hopefully a reasonable
## heuristic. Then sample
pars <- tail_and_pool(samples$pars, 0.05, 20)
pars <- tail_and_pool(initial$pars, 0.05, 20)
if (nrow(pars) != n_pars) {
cli::cli_abort(
c(paste("Unexpected parameter length in 'monty_samples' object",
Expand Down

0 comments on commit f381b89

Please sign in to comment.