Skip to content

Commit

Permalink
output_samples -> draws in failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabry committed Feb 12, 2025
1 parent 3ab41b8 commit 9a318ea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/test-csv.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ fit_bernoulli_variational <- testing_fit("bernoulli", method = "variational", se
fit_bernoulli_laplace <- testing_fit("bernoulli", method = "laplace", seed = 123)
fit_logistic_optimize <- testing_fit("logistic", method = "optimize", seed = 123)
fit_logistic_variational <- testing_fit("logistic", method = "variational", seed = 123)
fit_logistic_variational_short <- testing_fit("logistic", method = "variational", output_samples = 100, seed = 123)
fit_logistic_variational_short <- testing_fit("logistic", method = "variational", draws = 100, seed = 123)
fit_logistic_laplace <- testing_fit("logistic", method = "laplace", seed = 123)

fit_bernoulli_diag_e_no_samples <- testing_fit("bernoulli", method = "sample",
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-fit-shared.R
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ test_that("draws are returned for model with spaces", {
)
expect_equal(dim(fit_sample$draws()), c(1000, 1, 3))
utils::capture.output(
fit <- mod$variational(seed = 123, output_samples = 1000)
fit <- mod$variational(seed = 123, draws = 1000)
)
expect_equal(dim(fit$draws()), c(1000, 4))
utils::capture.output(
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-fit-vb.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test_that("time is reported after vb", {
seed = 123,
elbo_samples = 1000,
iter = 2000,
output_samples = 50
draws = 50
),
"Finished in"
)
Expand Down

0 comments on commit 9a318ea

Please sign in to comment.