split_data: Splits the data in a hierarchical reserving model into a...

Description Usage Arguments

View source: R/data_management.R

Description

Splits the data in a hierarchical reserving model into a training, validation and test data set

Usage

1
split_data(obj, observed = NULL, validation = NULL, cv_fold = NULL)

Arguments

obj

The hierarchical reserving model

observed

This input can be

  • A data set to be used for training and validation

  • A function that extracts the observed data from the full data set

validation

This input can be

  • A data set to be used for validation

  • A function that extracts the validation data set from the observed data set

  • A number between zero and one, which expresses the fraction of the data that will be used for validation

cv_fold

Number of folds to be used in cross validation


jonascrevecoeur/hirem documentation built on Dec. 14, 2021, 3 p.m.