k_wblocks_cv: K-fold-week cross validation function.

Description Usage Arguments Value

View source: R/gbm_baseline.R

Description

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

Usage

1
k_wblocks_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.