Skip to content

Revisit code comment from melodie switch #1158

@hfrick

Description

@hfrick

Do we still need this code snippet and it should be integrated? Or can we delete it?

tune/R/grid_helpers.R

Lines 1 to 25 in 3544816

# TODO old predict_model bits to check into
# # TODO patch since parsnip does not record the column names when Surv objects
# # are used with fit_xy()
# if (model$spec$mode == "censored regression") {
# model$preproc$y_var <- names(y_vals)
# }
#
# if (length(orig_rows) != nrow(x_vals)) {
# msg <- "Some assessment set rows are not available at prediction time."
#
# if (has_preprocessor_recipe(workflow)) {
# msg <-
# c(
# msg,
# i =
# "Consider using {.code skip = TRUE} on any recipe steps that
# remove rows to avoid calling them on the assessment set."
#
# )
# } else {
# msg <- c(msg, i = "Did your preprocessing steps filter or remove rows?")
# }
#
# cli::cli_abort(msg)
# }

Metadata

Metadata

Assignees

No one assigned

    Labels

    upkeepmaintenance, infrastructure, and similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions