createUnivariateFeatureSelection {PatientLevelPrediction} | R 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)
[Package PatientLevelPrediction version 6.4.1 Index]