Documentation for FClassifSelectPercentile
Feature Selection for classification data - percentile based.
Apply VarianceThreshold -> SelectPercentile to data. SelectPercentile based on f_classif and parameter percentile.
__init__(self, percentile=10)
special
Initialize the object.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
percentile |
float |
Percent of features to keep. |
10 |
Source code in photonai/modelwrapper/feature_selection.py
def __init__(self, percentile: float = 10):
"""
Initialize the object.
Parameters:
percentile:
Percent of features to keep.
"""
self.var_thres = VarianceThreshold()
self.percentile = percentile
self.my_fs = None