I was wondering if anyone here can explain the difference between the $L1$, $L2$ and $Max$ normalization mode in sklearn.preprocessing.normalize()
module?
Having read the documentation, I couldn't realize the difference!
Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It only takes a minute to sign up.
Sign up to join this communityI was wondering if anyone here can explain the difference between the $L1$, $L2$ and $Max$ normalization mode in sklearn.preprocessing.normalize()
module?
Having read the documentation, I couldn't realize the difference!
The options lead to different normalizations. if $x$ is the vector of covariates of length $n$, and say that the normalized vector is $y = x / z$ then the three options denote what to use for $z$:
Edit: previously, using Max
does not take absolute values first, so it is not equal to the $l_\infty$ norm -- however, that seems to have been updated and now it is equal to the infinity norm