Yes: When you instantiate `LogisticRegression`, use the keyword argument
`dual=False`
The dual formulation does not permit any fancy penalties in feature space,
such as L1.
http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html#sklearn.linear_model.LogisticRegression
Hope that helps,
Michael
On Tue, Nov 18, 2014 at 5:41 PM, George Bezerra <gbeze...@gmail.com> wrote:
> I'm trying to perform a grid search cv for logistic regression but I
> stumble on invalid combination of parameters:
>
> ValueError: Unsupported set of arguments: penalty='l1' is only supported
> when dual='false'., Parameters: penalty='l1', loss='lr', dual=True
>
> Is there a way to avoid this problem?
>
> Thanks,
>
> George.
>
> --
> George Bezerra
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
>
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> Scikit-learn-general@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general