organize_data: Extract data from objects to use in a shiny app

Description Usage Arguments Details Value

View source: R/organize_data.R

Description

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

1
2
3
4
5
6
7
organize_data(x, hover_cols = NULL, ...)

## Default S3 method:
organize_data(x, hover_cols = NULL, ...)

## S3 method for class '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.

Details

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

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.


shinymodels documentation built on Nov. 18, 2021, 1:12 a.m.