dragon_split: Hold out rows for evaluation

View source: R/mapping.R

dragon_splitR Documentation

Hold out rows for evaluation

Description

If you do not call this, dragon_train() holds out 5 percent of rows (and none when the dataset has fewer than 20 rows).

Usage

dragon_split(dataset, eval_frac = 0.05, seed = 42)

Arguments

dataset

A dragon_dataset.

eval_frac

Fraction of rows to hold out.

seed

Random seed for the split.

Value

The dataset with the split attached.


dragonfarm documentation built on Oct. 12, 2026, 5:07 p.m.