Skip to content

Commit

Permalink
Update seed for VB test
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed May 23, 2024
1 parent a4a870b commit 198839a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-model-init.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ init_json_2 <- test_path("resources", "init", "bernoulli.init-2.json")

test_that("all fitting methods work with provided init files", {
expect_sample_output(
mod$sample(data = data_list, chains = 1, init = init_json_1, seed = 123)
mod$sample(data = data_list, chains = 1, init = init_json_1, seed = 12345)
)
expect_optim_output(
mod$optimize(data = data_list, init = init_json_1, seed = 123)
mod$optimize(data = data_list, init = init_json_1, seed = 12345)
)
expect_vb_output(
mod$variational(data = data_list, init = init_json_1, seed = 123)
mod$variational(data = data_list, init = init_json_1, seed = 12345)
)
expect_laplace_output(
mod$laplace(data = data_list, init = init_json_1, seed = 123)
mod$laplace(data = data_list, init = init_json_1, seed = 12345)
)

# broadcasting
Expand Down

0 comments on commit 198839a

Please sign in to comment.