Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show_best tests for censored regression models #156

Merged
merged 10 commits into from
Jan 17, 2024
Merged

Conversation

topepo
Copy link
Member

@topepo topepo commented Dec 18, 2023

Initial tests for #118

@topepo
Copy link
Member Author

topepo commented Dec 19, 2023

@hfrick After review, we can set on this PR until tidymodels/tune#781 is resolved.

@topepo topepo marked this pull request as ready for review December 19, 2023 02:48
tests/testthat/test-survival-tune-show-best.R Outdated Show resolved Hide resolved
tests/testthat/test-survival-tune-show-best.R Outdated Show resolved Hide resolved
Comment on lines +38 to +41
Warning:
Metric "concordance_survival" was used to evaluate model candidates in the race but "brier_survival_integrated" has been chosen to rank the candidates. These results may not agree with the race.
Error in `show_best()`:
! "brier_survival_integrated" was not in the metric set. Please choose from: "concordance_survival".
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just error here instead of warn about the metric and then error anyway. I'll open an issue if you agree.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open the issue on finetune tidymodels/finetune#89 -- this PR is ready to merge!

tests/testthat/helper-cens-churn.R Outdated Show resolved Hide resolved
@topepo topepo merged commit c7bc3bd into main Jan 17, 2024
5 checks passed
@topepo topepo deleted the survival-show-best branch January 17, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants