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?