Skip to content

Commit

Permalink
reduce tests runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Sabanes Bove committed Mar 7, 2024
1 parent 93a103b commit da35604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

surv_prob <- function(k, h) {
.Call(`_shrinkforest_surv_prob`, k, h)
.Call(`_shrinkforest_surv_prob`, k, h)
}

4 changes: 2 additions & 2 deletions tests/testthat/test-horseshoe.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ test_that("horseshoe outputs the right elements for survival", {
family = brms::brmsfamily("cox", bhaz = bhaz),
brms::prior(normal(0, 5), class = "b", nlpar = "a") +
brms::prior(horseshoe(1), class = "b", nlpar = "b"),
iter = 2000, warmup = 1000, chains = 1,
iter = 20, warmup = 10, chains = 1,
control = list(adapt_delta = 0.95), seed = 0
))
expected <- list(
Expand Down Expand Up @@ -68,7 +68,7 @@ test_that("horseshoe outputs the right elements for binary", {
data = data_model, family = brms::brmsfamily("bernoulli"),
brms::prior(normal(0, 5), class = "b", nlpar = "a") +
brms::prior(horseshoe(1), class = "b", nlpar = "b"),
iter = 2000, warmup = 1000, chains = 1,
iter = 20, warmup = 10, chains = 1,
control = list(adapt_delta = 0.95), seed = 0
))
expected <- list(
Expand Down

0 comments on commit da35604

Please sign in to comment.