--- tags: Python --- # Python Sklearn scale, StandardScale, normalize, MinMaxScale, QuantileTransformer [](https://hackmd.io/ys9qvNcrTQiOOCRk65HvEg) # scale | axis | | --- | | 0 (default)| | 1 | ```python ss = scale(data, axis=0) ``` ## StandardScaler ```python standard = StandardScaler().fit_transform(data) ``` ## normalize | norm | axis | | --- | --- | | l1 | 0 (default) | | l2 (default) | 1 | | max | ```python nor = normalize(data, norm='l2') ``` ## MinMaxScale ```python scaler = MinMaxScaler().fit_transform(data) ``` ## QuantileTransformer | output_distribution | | --- | | normal | | uniform (default) | ```python quan = QuantileTransformer(output_distribution="normal").(data) ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up