Skip to content

Documentation for FRegressionSelectPercentile

Feature Selection for regression data - percentile based.

Apply VarianceThreshold -> SelectPercentile to data. SelectPercentile based on f_regression 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