You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if this warning is only thrown once. (One of them comes from tune_grid() but is irrelevant to the user.)
library(tidymodels)
library(censored)
#> Loading required package: survival
library(finetune)
lung_surv<-lung %>%
dplyr::mutate(surv= Surv(time, status), .keep="unused")
# mode is not censored regression
set.seed(2193)
tune_res<-
linear_reg(penalty= tune(), engine="glmnet") %>%
tune_race_anova(
mpg~.,
resamples= vfold_cv(mtcars, 5),
metrics= metric_set(rmse),
eval_time=10
)
#> Warning in tune::tune_grid(., tmp_resamples, param_info = param_info, grid = grid, : Evaluation times are only required when the model mode is "censored regression"#> (and will be ignored).#> Warning in tune_race_anova(., mpg ~ ., resamples = vfold_cv(mtcars, 5), : Evaluation times are only required when the model mode is "censored regression"#> (and will be ignored).# static metric
set.seed(2193)
tune_res<-
proportional_hazards(penalty= tune(), engine="glmnet") %>%
tune_race_anova(
surv~.,
resamples= vfold_cv(lung_surv, 5),
metrics= metric_set(concordance_survival),
eval_time=10
)
#> Warning in tune::tune_grid(., tmp_resamples, param_info = param_info, grid = grid, : Evaluation times are only required when dynmanic or integrated metrics are used#> (and will be ignored here).#> Warning in tune_race_anova(., surv ~ ., resamples = vfold_cv(lung_surv, : Evaluation times are only required when dynmanic or integrated metrics are used#> (and will be ignored here).
Part of tidymodels/tune#704
It would be nice if this warning is only thrown once. (One of them comes from
tune_grid()
but is irrelevant to the user.)Created on 2024-01-16 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: