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

View source: R/organize_data.R

organize_dataR Documentation

Extract data from objects to use in a shiny app

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

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 May 29, 2024, 2:22 a.m.