Extract Model Residuals Using `feature_data` Objects
residuals-feature_data-method.RdExtract residuals from a machine learning model compared to a `feature_data` object.
Arguments
- object
A `feature_data` object.
- model
A fitted model object.
- subset
Subset of the `preproc` data set.
- xprep
Character argument if transformed data ("transform"), scaled data ("scale" ), transformed and scaled data ("both") or original raw data ("none") are used for x.
- yprep
Character argument if transformed data ("transform"), scaled data ("scale" ), transformed and scaled data ("both") or original raw data ("none") are used for y.
- to_original_scale
Logical value to force re-transformation of predictions to the original scale.
- as_matrix
logical TRUE if the function should return matrix, or a data frame or tibble otherwise.
- ...
Additional arguments (currently not used).