-
Notifications
You must be signed in to change notification settings - Fork 8
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
Survival analysis updates #88
Conversation
|
||
racing_obj_log(res, metrics, control, eval_time) | ||
eval_time <- tune::check_eval_time_arg(eval_time, metrics, call = call) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same question about the call
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️
@@ -387,7 +387,7 @@ harmonize_configs <- function(x, key) { | |||
x | |||
} | |||
|
|||
restore_tune <- function(x, y) { | |||
restore_tune <- function(x, y, eval_time_target = NULL) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x
and y
are both tune_results
objects, right? do they now both carry eval_time_target
as an attribute that could be used here instead of providing it as an argument?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
x
has class tune_results
. y
has the same structure but different attributes. The extra classes have been dropped due to row filtering of the resampling object. The function restores missing attributes to y
.
However... x
is from tune_grid()
, which has no notion of a target evaluation time. tidymodels/tune#782 defaults eval_time_target
to NULL for grid tuning, resampling, and last fit objects.
That's why eval_time_target
is an argument to this function. It should be non-null for the resulting racing object but the value inherited from x
is NULL unless we set it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, thanks! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
notes added to sources
Update the tune functions here to keep up with the changes in the tune.
These are pretty straightforward changes. Testing for survival models will be in extratests (after this is merged, step 6 below)
An updated itinerary of PRs
show_best()
on results offit_resamples()
and othertune_results
tune#781)autoplot()
)middle_eval_time()
) to remove