Learn R Programming

animl (version 3.2.0)

train_val_test: Splits the manifest into training validation and test datasets for training

Description

Splits the manifest into training validation and test datasets for training

Usage

train_val_test(
  manifest,
  label_col = "class",
  file_col = "filepath",
  conf_col = "confidence",
  out_dir = NULL,
  val_size = 0.1,
  test_size = 0.1,
  seed = 42
)

Value

train manifest, validate manifest, test manifest

Arguments

manifest

list of files to split for training

label_col

column name containing class labels

file_col

column containing file paths

conf_col

column containing prediction confidence

out_dir

location to save split lists to

val_size

fraction of data dedicated to validation

test_size

fraction of data dedicated to testing

seed

RNG seed for reproducibility

Examples

Run this code
if (FALSE) {
  output <- train_val_test(manifest)
}

Run the code above in your browser using DataLab