View source: R/validation_set.R
validation_set | R Documentation |
Create a Validation Split for Tuning
validation_set(split, ...)
## S3 method for class 'val_split'
analysis(x, ...)
## S3 method for class 'val_split'
assessment(x, ...)
## S3 method for class 'val_split'
training(x, ...)
## S3 method for class 'val_split'
validation(x, ...)
## S3 method for class 'val_split'
testing(x, ...)
split |
An object of class |
... |
These dots are for future extensions and must be empty. |
x |
An |
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.
set.seed(1353)
car_split <- initial_validation_split(mtcars)
car_set <- validation_set(car_split)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.