Skip to contents

Retrieves the exact dataset version that was used to train a model. This ensures reproducibility by downloading the specific version from pins.

Usage

get_training_dataset(model_id, board = NULL)

Arguments

model_id

Model name

board

Pins board to load model from (NULL = local training board)

Value

Path to the dataset tar.gz file

Examples

if (FALSE) { # \dontrun{
# Get the dataset used to train a model
dataset_path <- get_training_dataset("my_model")

# Can then use this to retrain or analyze
train_model(data_dir = dataset_path, model_id = "my_model_v2", ...)
} # }