[scikit-learn] Using fit_intercept with sparse matrices

Michael Eickenberg michael.eickenberg at gmail.com
Tue Jul 5 02:39:16 EDT 2016


On Tuesday, July 5, 2016, Joel Nothman <joel.nothman at gmail.com> wrote:

> Jaidev is suggesting that fit_intercept=False makes no sense if the data
> is sparse.
>

+1


> But I think that depends on your target variable.
>

+1


>
>
>
> On 4 July 2016 at 22:11, Alexandre Gramfort <
> alexandre.gramfort at telecom-paristech.fr
> <javascript:_e(%7B%7D,'cvml','alexandre.gramfort at telecom-paristech.fr');>>
> wrote:
>
>> On Mon, Jul 4, 2016 at 12:13 PM, Jaidev Deshpande
>> <deshpande.jaidev at gmail.com
>> <javascript:_e(%7B%7D,'cvml','deshpande.jaidev at gmail.com');>> wrote:
>> > My point was, would it not be useful to raise a warning when the input
>> is
>> > sparse and the user does _not_ want to fit the intercept?
>>
>> I don't get it. Just fit_intercept=False should do it. why a warning???
>>
>> A
>> _______________________________________________
>> scikit-learn mailing list
>> scikit-learn at python.org
>> <javascript:_e(%7B%7D,'cvml','scikit-learn at python.org');>
>> https://mail.python.org/mailman/listinfo/scikit-learn
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20160705/fd5b63ee/attachment.html>


More information about the scikit-learn mailing list