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.


samirtouzani/GBMbaseline documentation built on May 29, 2019, 1:02 p.m.