Chapter:3-Why do we need feature scaling in Machine Learning and how to do it using SciKit Learn?

after onehotencoding
from sklearn.preprocessing import StandardScaler 
standardScalerX = StandardScaler()
x = standardScalerX.fit_transform(x)




Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


More from Medium

Annoberry lists down some common errors with training data and how to rectify them.

ML Security with the Adversarial Robustness Toolbox

PSA UNIT FOR NITROGEN PURIFICATION: Machine Learning Approach Using Decission Tree Regressor

Feature Selection using FRUFS with Classification using K-Means and VevestaX