Converts target variable for classification tasks and coerces logical/character columns to factors.
prepare_features(
data,
target_lab = NULL,
task = c("classification", "regression")
)A tibble with processed feature types.
Data frame or tibble. Input dataset (train or test).
Character. Name of the target column. Required for classification.
Character. Type of task: "classification" or "regression".