scikit-learn/scikit-learn — pull request #1944 by jnothman (2013-05-07 02:38:13+00:00)
Title: FIX SelectPercentile limit bug

SelectPercentile had a tie breaker mechanism that just took the first `max_feats` selected features. So if scores were `[0, 0, 1]`, selecting the top third would mask `[F F T]`, but the top two-thirds would mask `[T F F]`, i.e. missing the best score entirely.

This is a fix.