which coefficients go to which class in multiclass logistic regression in scikit learn?
I'm using scikit learn's Logistic Regression for a multiclass problem. logit = LogisticRegression(penalty='l1') logit = logit.fit(X, y) I'm interested in which features are driving this decision. logit.coef_ The above gives me a beautiful dataframe in (n_classes, n_features) format, but all the classes and feature names are gone. With features, that's okay, because making the assumption that they're indexed the same way as I passed them in seems safe... But with classes, it's a problem, since I never explicitly passed in the classes in any order. So which class do coefficient sets (rows in the