time_var: Create new variables based on the timestamps.

Description Usage Arguments Value

View source: R/gbm_baseline.R

Description

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

Usage

1
time_var(Data)

Arguments

Data

A dataframe of training or prediction data.

k_folds

An integer that corresponds to the number of CV folds.

Value

A dataframe of training or prediction data including the new time variable.


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