Repository navigation
Conversation
|
Putting this PR since we need to merge #27721 first. |
|
Subsequent PR to #27721. @thomasjpfan @OmarManzoor @lorentzenchr if you want to give a look. |
adrinjalali
left a comment
There was a problem hiding this comment.
Overall it looks good, but I notice we don't have good citations in the user guide or in the API docs, and there's the issue with p-values.
| that have a higher score than the `threshold` parameter. This filter works in an | ||
| unsupervised setting and is available as a mode in |
There was a problem hiding this comment.
it can be unsupervised, but by default it's supervised.
There was a problem hiding this comment.
I agree this changelog entry is really misleading and should be rewritten to describe the nominal use case (that is, the supervised case).
| pvalues_ : array-like of shape (n_features,) | ||
| p-values of feature scores, None if `score_func` returned only scores. |
There was a problem hiding this comment.
it makes me cringe that we're reporting p-values here 😁 and that there's no comment on whether they're corrected or not, and how they should be corrected if not, before being potentially used.
There was a problem hiding this comment.
If we require the score_func to compute p-values, it's weird to threshold on the score values (that is the value of the test statistic, which can vary on an arbitrary scale) instead of the p-values.
ogrisel
left a comment
There was a problem hiding this comment.
The name SelectThreshold is confusing. This does not "select a threshold".
Instead, I would suggest SelectByScore or SelectAboveScoreThreshold or SelectAboveScore.
Depends on #27721
closes #27609
closes #21699
Add
SelectThresholdthat is a filter selecting features that have a higher score than a user-defined threshold.This selector allows for similar use case to
VarianceThresholdbut has more flexibility since the score function is not limited to the variance.