Expand description
Statistical-test-based feature selectors.
Three selectors that choose features based on p-values obtained from a statistical test (e.g., ANOVA F-test, chi-squared test):
SelectFprโ False Positive Rate: selects every feature whose p-value is belowalpha.SelectFdrโ False Discovery Rate: applies the Benjamini-Hochberg procedure to control the expected proportion of false positives.SelectFweโ Family-Wise Error: applies the Bonferroni correction (alpha / n_features) to control the probability of any false positive.
All three take a pre-computed vector of p-values (one per feature) at fit time, allowing integration with any upstream scoring function.
Structsยง
- Fitted
Select Fdr - A fitted
SelectFdrholding the selected indices. - Fitted
Select Fpr - A fitted
SelectFprholding the selected indices. - Fitted
Select Fwe - A fitted
SelectFweholding the selected indices. - Select
Fdr - Select features controlling the false discovery rate via the Benjamini-Hochberg procedure.
- Select
Fpr - Select features with p-values below
alpha. - Select
Fwe - Select features controlling the family-wise error rate via the Bonferroni correction.