Return Prediction Mapping Function (Helper)

retpred_map(t, data_subset, indices, model_function, model_config)

Arguments

t

integer, index of the current iteration

data_subset

tibble, subset of the data (stock_id, date, return_label, features)

indices

list, list of training and prediction indices

model_function

character, name of the prediction (model) function

model_config

list, configuration for the model

Value

tibble that contains stock id, date, and predicted return