createUnivariateFeatureSelection: Create the settings for defining any feature selection that...

View source: R/FeatureEngineering.R

createUnivariateFeatureSelectionR Documentation

Create the settings for defining any feature selection that will be done

Description

Create the settings for defining any feature selection that will be done

Usage

createUnivariateFeatureSelection(k = 100)

Arguments

k

This function returns the K features most associated (univariately) to the outcome

Details

Returns an object of class featureEngineeringSettings that specifies the function that will be called and the settings. Uses the scikit-learn SelectKBest function with chi2 for univariate feature selection.

Value

An object of class featureEngineeringSettings

Examples


## Not run:  #' # create a feature selection that selects the 100 most associated features
featureSelector <- createUnivariateFeatureSelection(k = 100) 

## End(Not run)

OHDSI/PatientLevelPrediction documentation built on Feb. 14, 2025, 9:44 a.m.