k_dblocks_cv: K-fold-day cross validation function.

Description Usage Arguments Value

View source: R/gbm_baseline.R

Description

k_dblocks_cv splits the data into k folds by randomly selecting blocks of data, where each block correspond to a calendar day.

Usage

1
k_dblocks_cv(Data, k_folds)

Arguments

Data

A dataframe.

k_folds

An integer that corresponds to the number of CV folds.

Value

A list of row indexes corresponding to the training data.


LBNL-ETA/RMV2.0 documentation built on Nov. 9, 2020, 5:44 a.m.