scikit-learn/scikit-learn — pull request #1141 by pprett (2012-09-12 16:43:39+00:00)
Title: MRG: Fix predict_proba w/ sparse matrix regression

This PR fixes the ``SGDClassifier.predict_proba`` w/ sparse matrix regression.

The regression was introduced in #1030 and, thus, release 0.12 where I used ``len`` to get the number of rows of matrix X. Even thought ``predict_proba`` was covered by a number of tests, the test suite used a trick automatically test for dense and sparse inputs, however, ``predict_proba`` was not exposed to the sparse inputs.