Learn R Programming

rsample (version 1.2.1)

validation_set: Create a Validation Split for Tuning

Description

Create a Validation Split for Tuning

Usage

validation_set(split, ...)

# S3 method for val_split analysis(x, ...)

# S3 method for val_split assessment(x, ...)

# S3 method for val_split training(x, ...)

# S3 method for val_split validation(x, ...)

# S3 method for val_split testing(x, ...)

Value

An tibble with classes validation_set, rset, tbl_df, tbl, and data.frame. The results include a column for the data split object and a column called id that has a character string with the resample identifier.

Arguments

split

An object of class initial_validation_split, such as resulting from initial_validation_split() or group_initial_validation_split().

...

These dots are for future extensions and must be empty.

x

An rsplit object produced by validation_set().

Examples

Run this code
set.seed(1353)
car_split <- initial_validation_split(mtcars)
car_set <- validation_set(car_split)

Run the code above in your browser using DataLab