Comparing the GLMNET output of R with Python using LogisticRegression()
问题 I am using Logistic Regression with the L1 norm (LASSO). I have opted to used the glmnet package in R and the LogisticRegression() from the sklearn.linear_model in python . From my understanding this should give the same results however they are not. Note that I did not scale my data. For python I have used the below link as a reference: https://chrisalbon.com/machine_learning/logistic_regression/logistic_regression_with_l1_regularization/ and for R I have used the below link: http://www