R/get_fit.R
prep_data.Rd
------------------------------------------------------------------------------------ Prepare dataset
prep_data(data, target_lab, task, feat_types = NULL)
Original data frame with features to be converted to correct types.
Name of the column in data that contains target/label information.
Character string indicating the type of problem, either 'classification' (categorical outcome) or 'regression' (continuous outcome).
Named vector indicating the type of each features, e.g., c(sex = 'factor', age = 'numeric'). If feature types are not supplied, infer from column type.
List of dataframes (training + test) with proper feature types and target name.