-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
collect_predictions() for survival models (#158)
* initial tests * updates for tidymodels/tune#798 * SA test updates * update tune version * update bayesian opt tests * update racing unit tests * update tune version * temporarily point to PR * improve readability of reference object * racing updates; also covers changes in tidymodels/finetune#90 * updated for changes in #804 * test for #138 and tidymodels/finetune#81 * PR tune#798 has been merged, new one to check with is tune#804 * updated for new tune version * version bumps * update with new tune warning wording * changes for tidymodels/tune#806 * more updated snapshots * mroe snapshot updates * update censored bagging snapshot * irreproducible results; see #160 --------- Co-authored-by: ‘topepo’ <‘[email protected]’> Co-authored-by: Hannah Frick <[email protected]>
- Loading branch information
1 parent
683ec31
commit e5ad42b
Showing
36 changed files
with
1,470 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ Suggests: | |
butcher, | ||
C50, | ||
censored, | ||
conflicted, | ||
coin, | ||
dials, | ||
dimRed, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
library(testthat) | ||
library(extratests) | ||
|
||
# triage with fewer files: | ||
# devtools::test(filter = "(survival)|(censor)") | ||
|
||
test_check("extratests", reporter = "summary") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
tests/testthat/_snaps/survival-tune-eval-time-attribute.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# tune*_() saves eval_time | ||
|
||
Code | ||
set.seed(2193) | ||
bayes_res <- mod_spec %>% tune_bayes(event_time ~ X1 + X2, sim_rs, initial = grid_res, | ||
iter = 2, metrics = srv_mtrc, eval_time = time_points) | ||
Condition | ||
Warning: | ||
4 evaluation times are available; the first (10) will be used. | ||
|
||
--- | ||
|
||
Code | ||
set.seed(2193) | ||
sa_res <- mod_spec %>% tune_sim_anneal(event_time ~ X1 + X2, sim_rs, initial = grid_res, | ||
iter = 2, metrics = srv_mtrc, eval_time = time_points, control = control_sim_anneal( | ||
verbose_iter = FALSE)) | ||
Condition | ||
Warning: | ||
4 evaluation times are available; the first (10) will be used. | ||
|
||
--- | ||
|
||
Code | ||
set.seed(2193) | ||
anova_res <- mod_spec %>% tune_race_anova(event_time ~ X1 + X2, sim_rs, grid = grid, | ||
metrics = srv_mtrc, eval_time = time_points) | ||
Condition | ||
Warning: | ||
4 evaluation times are available; the first (10) will be used. | ||
|
||
--- | ||
|
||
Code | ||
set.seed(2193) | ||
wl_res <- mod_spec %>% tune_race_win_loss(event_time ~ X1 + X2, sim_rs, grid = grid, | ||
metrics = srv_mtrc, eval_time = time_points) | ||
Condition | ||
Warning: | ||
4 evaluation times are available; the first (10) will be used. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.