Skip to content

This function joins the result of tune::fit_resamples() to the original dataset to give a list that can be an input for the Shiny app.

Usage

organize_data(x, hover_cols = NULL, ...)

# S3 method for default
organize_data(x, hover_cols = NULL, ...)

# S3 method for tune_results
organize_data(x, hover_cols = NULL, ...)

Arguments

x

The tune::fit_resamples() result.

hover_cols

The columns to display while hovering.

...

Other parameters not currently used.

Value

A list with elements data frame and character vectors. The data frame includes an outcome variable .outcome, a prediction variable .pred, model configuration variable .config, and hovering columns .hover.

Details

The default configuration is based on the optimal value of the first metric.