I am using python scikit-learn library for classification.
As a feature selection step, I want to use RandomizedLogisticRegression().
So for finding best value of C by cross-validation, I used LogisticRegressionCV(penalty='l1', solver='liblinear'). However, all coefficients were all 0 in this case. Using l2 penalty works without problem. Also, single run of LogisticRegression() with l1 penalty seems to give proper coeffients.
I am using RandomizedLasso and LassoCV() for work-around, but I am not sure whether it is proper to use LASSO for binary class label.
So my question is like these.
- Is there some problem in using LogisticRegressionCV() in my case?
- Is there another way to find best value of C_ for logistic regression except GridSearchCV()?
- Is it possible to use LASSO for binary(not continuous) classification?