This solution is optimized for the scenario that the dataset is very large but only contains missing values in a small number of columns.
pre_impute(data, fun, ...)pre_impute_median(data)
pre_impute_mean(data)
Fitting and test datasets, as returned by pre_split
or any other standard pre-processing function.
Function for calculating imputation values. Should take a vector and return a scalar.
Sent to fun
.
A pair of fitting and testing datasets.