Learn R Programming

PatientLevelPrediction (version 6.4.1)

createUnivariateFeatureSelection: 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)

Value

An object of class featureEngineeringSettings

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.

Examples

Run this code
 # dontrun reason: requires python and scikit-learn 
if (FALSE)  #' # create a feature selection that selects the 100 most associated features
featureSelector <- createUnivariateFeatureSelection(k = 100) 

Run the code above in your browser using DataLab