get_target_text_from_resamples: Gets the target variable as text from unnested resamples

View source: R/utils-resamples.R

get_target_text_from_resamplesR Documentation

Gets the target variable as text from unnested resamples

Description

An internal function used by unnest_modeltime_resamples().

Usage

get_target_text_from_resamples(data, column_before_target = ".row")

Arguments

data

Unnested resample results

column_before_target

The text column located before the target variable. This is ".row".

Examples


# The .resample_results column is deeply nested
m750_training_resamples_fitted

# Unnest and prepare the resample predictions for evaluation
unnest_modeltime_resamples(m750_training_resamples_fitted) %>%
    get_target_text_from_resamples()


modeltime.resample documentation built on April 14, 2023, 12:31 a.m.