Learn practical skills, build real-world projects, and advance your career
Created 3 years ago
Feature Scaling
import numpy as np
import pandas as pd
from sklearn.preprocessing import StandardScaler, MinMaxScaler, RobustScaler
views = pd.DataFrame([1295, 25., 19000, 5, 1, 300], columns=['VIEW'])
views
views['VIEW']
0 1295.0
1 25.0
2 19000.0
3 5.0
4 1.0
5 300.0
Name: VIEW, dtype: float64
Standard Scaling
It makes all the values centered around 0.
https://miro.medium.com/max/660/1*qXXqcZXhSTgw9tVhx7zNNw.gif