[scikit-learn] LogisticRegression coef_ greater than n_features?

2019-01-07 Thread pisymbol
According to the doc (0.20.2) the coef_ variables are suppose to be shape (1, n_features) for binary classification. Well I created a Pipeline and performed a GridSearchCV to create a LogisticRegresion model that does fairly well. However, when I want to rank feature importance I noticed that my co

Re: [scikit-learn] LogisticRegression coef_ greater than n_features?

2019-01-07 Thread pisymbol
On Mon, Jan 7, 2019 at 11:50 PM pisymbol wrote: > According to the doc (0.20.2) the coef_ variables are suppose to be shape > (1, n_features) for binary classification. Well I created a Pipeline and > performed a GridSearchCV to create a LogisticRegresion model that does > fairly w

Re: [scikit-learn] LogisticRegression coef_ greater than n_features?

2019-01-08 Thread pisymbol
> > Best, > Sebastian > > > On Jan 7, 2019, at 11:02 PM, pisymbol wrote: > > > > > > > > On Mon, Jan 7, 2019 at 11:50 PM pisymbol wrote: > > According to the doc (0.20.2) the coef_ variables are suppose to be > shape (1, n_features) for bina

Re: [scikit-learn] LogisticRegression coef_ greater than n_features?

2019-01-08 Thread pisymbol
Also Sebastian, I have binary classes but they are strings: clf.classes_: array(['American', 'Southwest'], dtype=object) On Tue, Jan 8, 2019 at 9:51 AM pisymbol wrote: > If that is the case, what order are the coefficients in then? > > -aps > > On Tue