tune-internal-functions: Internal functions used by other tidymodels packages

forge_from_workflowR Documentation

Internal functions used by other tidymodels packages

Description

These are not to be meant to be invoked directly by users.

Usage

forge_from_workflow(new_data, workflow)

finalize_workflow_preprocessor(workflow, grid_preprocessor)

.estimate_metrics(dat, metric, param_names, outcome_name, event_level)

.load_namespace(x)

.catch_and_log(.expr, ..., bad_only = FALSE, notes)

.catch_and_log_fit(.expr, ..., notes)

Arguments

new_data

A data frame or matrix of predictors to process.

workflow

A workflow.

grid_preprocessor

A tibble with parameter information.

dat

A data set.

metric

A metric set.

param_names

A character vector of tuning parameter names.

outcome_name

A character string for the column of dat that is the outcome.

event_level

A logical passed from the control function.

x

A character vector of package names.

.expr

Code to execute.

...

Object to pass to the internal tune_log() function.

bad_only

A logical for whether warnings and errors should be caught.

notes

Character data to add to the logging.


tune documentation built on July 8, 2022, 1:08 a.m.