Learn R Programming

dtGAP (version 0.0.2)

prepare_features: Prepare Features for Modeling

Description

Converts target variable for classification tasks and coerces logical/character columns to factors.

Usage

prepare_features(
  data,
  target_lab = NULL,
  task = c("classification", "regression")
)

Value

A tibble with processed feature types.

Arguments

data

Data frame or tibble. Input dataset (train or test).

target_lab

Character. Name of the target column. Required for classification.

task

Character. Type of task: "classification" or "regression".