Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MRG sparse matrix support in univariate feature selection #1025
This PR adds sparse matrix support to ``f_classif" and "f_regression" univariate feature selection.
I'm not very good with sparse stuff, so any suggestions are more then welcome.
I added a utility function that computes the element wise square of an array-like or sparse matrix and put it in utils.