简体   繁体   中英

L1 and L2 Penalties on Sklearn Logistic Classifier

I was looking at the scikit-learn logistic regression documentation, and saw that the penalty can be L1 and L2. I know that lasso and ridge regression are also known as L1 and L2 regularization respectively, so I was wondering if the L1 and L2 penalties refer to the same thing?

Yes that's correct. For L1 and L2 regularization (Lasso and Ridge Regression), the regularization term is often called L1 penalty or L2 penalty.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM