Skip to content

Commit

Permalink
update snapshots with space-filling grids (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch authored Aug 6, 2024
1 parent a03c576 commit d575e4e
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 30 deletions.
50 changes: 25 additions & 25 deletions tests/testthat/_snaps/survival-tune-show-best.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
# A tibble: 5 x 9
cost_complexity .metric .estimator .eval_time mean n std_err .config
<dbl> <chr> <chr> <dbl> <dbl> <int> <dbl> <chr>
1 1.26e- 9 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
2 1.31e- 6 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
3 3.55e- 8 brier_surv~ standard 100 0.0114 10 0.00312 Iter2
4 1.00e-10 brier_surv~ standard 100 0.0114 10 0.00312 Iter3
5 3.91e- 5 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
1 7.81e- 5 brier_surv~ standard 100 0.0110 10 0.00316 Prepro~
2 1.03e-10 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
3 9.12e- 8 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
4 3.56e- 6 brier_surv~ standard 100 0.0114 10 0.00312 Iter1
5 2.24e- 9 brier_surv~ standard 100 0.0114 10 0.00312 Iter2
# i 1 more variable: .iter <int>

---
Expand Down Expand Up @@ -94,11 +94,11 @@
# A tibble: 5 x 8
cost_complexity .metric .estimator .eval_time mean n std_err .config
<dbl> <chr> <chr> <dbl> <dbl> <int> <dbl> <chr>
1 0.0706 concordance~ standard NA 0.297 10 0.0118 Prepro~
2 0.0000128 concordance~ standard NA 0.278 10 0.0147 Prepro~
3 0.0000591 concordance~ standard NA 0.275 10 0.0152 Prepro~
4 0.0000959 concordance~ standard NA 0.274 10 0.0149 Prepro~
5 0.000374 concordance~ standard NA 0.256 10 0.0133 Prepro~
1 0.0867 concordance~ standard NA 0.297 10 0.0118 Prepro~
2 0.0000192 concordance~ standard NA 0.279 10 0.0147 Prepro~
3 0.0000107 concordance~ standard NA 0.278 10 0.0147 Prepro~
4 0.0000384 concordance~ standard NA 0.277 10 0.0156 Prepro~
5 0.000118 concordance~ standard NA 0.270 10 0.0141 Prepro~

---

Expand All @@ -111,11 +111,11 @@
# A tibble: 5 x 8
cost_complexity .metric .estimator .eval_time mean n std_err .config
<dbl> <chr> <chr> <dbl> <dbl> <int> <dbl> <chr>
1 0.0706 concordance~ standard NA 0.297 10 0.0118 Prepro~
2 0.0000128 concordance~ standard NA 0.278 10 0.0147 Prepro~
3 0.0000591 concordance~ standard NA 0.275 10 0.0152 Prepro~
4 0.0000959 concordance~ standard NA 0.274 10 0.0149 Prepro~
5 0.000374 concordance~ standard NA 0.256 10 0.0133 Prepro~
1 0.0867 concordance~ standard NA 0.297 10 0.0118 Prepro~
2 0.0000192 concordance~ standard NA 0.279 10 0.0147 Prepro~
3 0.0000107 concordance~ standard NA 0.278 10 0.0147 Prepro~
4 0.0000384 concordance~ standard NA 0.277 10 0.0156 Prepro~
5 0.000118 concordance~ standard NA 0.270 10 0.0141 Prepro~

---

Expand All @@ -136,11 +136,11 @@
# A tibble: 5 x 8
cost_complexity .metric .estimator .eval_time mean n std_err .config
<dbl> <chr> <chr> <dbl> <dbl> <int> <dbl> <chr>
1 0.0000591 brier_surv~ standard 100 0.0110 10 0.00314 Prepro~
2 0.0000959 brier_surv~ standard 100 0.0110 10 0.00317 Prepro~
3 0.0000128 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
4 0.000374 brier_surv~ standard 100 0.0114 10 0.00340 Prepro~
5 0.000822 brier_surv~ standard 100 0.0124 10 0.00319 Prepro~
1 0.000327 brier_surv~ standard 100 0.0108 10 0.00329 Prepro~
2 0.000118 brier_surv~ standard 100 0.0110 10 0.00317 Prepro~
3 0.0000192 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
4 0.0000384 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~
5 0.0000107 brier_surv~ standard 100 0.0114 10 0.00312 Prepro~

---

Expand All @@ -153,11 +153,11 @@
# A tibble: 5 x 8
cost_complexity .metric .estimator .eval_time mean n std_err .config
<dbl> <chr> <chr> <dbl> <dbl> <int> <dbl> <chr>
1 0.0000128 concordance~ standard NA 0.278 10 0.0147 Prepro~
2 0.0000591 concordance~ standard NA 0.275 10 0.0152 Prepro~
3 0.0000959 concordance~ standard NA 0.274 10 0.0149 Prepro~
4 0.000374 concordance~ standard NA 0.256 10 0.0133 Prepro~
5 0.000822 concordance~ standard NA 0.238 10 0.0182 Prepro~
1 0.0000192 concordance~ standard NA 0.279 10 0.0147 Prepro~
2 0.0000107 concordance~ standard NA 0.278 10 0.0147 Prepro~
3 0.0000384 concordance~ standard NA 0.277 10 0.0156 Prepro~
4 0.000118 concordance~ standard NA 0.270 10 0.0141 Prepro~
5 0.000327 concordance~ standard NA 0.259 10 0.0141 Prepro~

---

Expand Down
6 changes: 6 additions & 0 deletions tests/testthat/test-engine-parameters-ranger.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ rs <- bootstraps(mtcars, times = 5)
## -----------------------------------------------------------------------------

test_that('grid search', {
# pending tidymodels/dials#347
skip_if_not_installed("dials", minimum_version = "1.3.0.9001")

set.seed(2893)
expect_error(
rf_tune <-
Expand All @@ -31,6 +34,9 @@ test_that('grid search', {
## -----------------------------------------------------------------------------

test_that('Bayes search', {
# pending tidymodels/dials#347
skip_if_not_installed("dials", minimum_version = "1.3.0.9001")

set.seed(2893)
expect_error(
rf_search <-
Expand Down
10 changes: 5 additions & 5 deletions tests/testthat/test-survival-tune-show-best.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
test_that("show_best with censored data - integrated metric - grid", {

skip_if_not_installed("parsnip", minimum_version = "1.1.1.9007")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("tune", minimum_version = "1.2.1.9000")

obj <- make_churn_cens_objects()

Expand Down Expand Up @@ -43,7 +43,7 @@ test_that("show_best with censored data - integrated metric - grid", {
test_that("show_best with censored data - dynamic metric - bayes", {

skip_if_not_installed("parsnip", minimum_version = "1.1.1.9007")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("tune", minimum_version = "1.2.1.9000")

obj <- make_churn_cens_objects()

Expand Down Expand Up @@ -90,7 +90,7 @@ test_that("show_best with censored data - dynamic metric - bayes", {
test_that("show_best with censored data - static metric - anova racing", {

skip_if_not_installed("parsnip", minimum_version = "1.1.1.9007")
skip_if_not_installed("tune", minimum_version = "1.1.2.9020")
skip_if_not_installed("tune", minimum_version = "1.2.1.9000")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9004")

obj <- make_churn_cens_objects()
Expand Down Expand Up @@ -143,7 +143,7 @@ test_that("show_best with censored data - static metric - anova racing", {
test_that("show_best with censored data - static metric (+dyn) - W/L racing", {

skip_if_not_installed("parsnip", minimum_version = "1.1.1.9007")
skip_if_not_installed("tune", minimum_version = "1.1.2.9020")
skip_if_not_installed("tune", minimum_version = "1.2.1.9000")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9004")

obj <- make_churn_cens_objects()
Expand Down Expand Up @@ -201,7 +201,7 @@ test_that("show_best with censored data - static metric (+dyn) - W/L racing", {

test_that("show_best with censored data - dyn metric (+stc) - W/L racing", {
skip_if_not_installed("parsnip", minimum_version = "1.1.1.9007")
skip_if_not_installed("tune", minimum_version = "1.1.2.9012")
skip_if_not_installed("tune", minimum_version = "1.2.1.9000")
skip_if_not_installed("finetune", minimum_version = "1.1.0.9004")

obj <- make_churn_cens_objects()
Expand Down

0 comments on commit d575e4e

Please sign in to comment.