feature_selection_fss: Feature selection by forward stepwise search

View source: R/trans_feature_selection_fss.R

feature_selection_fssR Documentation

Feature selection by forward stepwise search

Description

Selects numeric predictors using forward stepwise subset search.

Usage

feature_selection_fss(attribute, features = NULL)

Arguments

attribute

target attribute name

features

optional vector of feature names (default: all columns except attribute)

Details

Uses leaps::regsubsets and keeps the subset with the highest adjusted R-squared. The target attribute must be numeric.

Value

returns an object of class feature_selection_fss

Examples

if (requireNamespace("leaps", quietly = TRUE)) {
 data(Boston)
 fs <- feature_selection_fss("medv")
 fs <- fit(fs, Boston)
 fs$selected
 boston_fs <- transform(fs, Boston)
 names(boston_fs)
}

daltoolbox documentation built on May 14, 2026, 9:06 a.m.