scikit-learn/scikit-learn — pull request #3674 by MechCoder (2014-09-18 16:58:51+00:00)
Title: [MRG] FIX: Make sure LogRegCV with solver=liblinear works with sparse matrices

The function `csr_set_problem` assumes X to be of `csr` format. More specifically, accessing `X.indptr[0] - 1` to get `n_samples` in the function creates huge problems. This fixes it.