Machine Learning, Gradient Descent, Feature Scaling, Data Preprocessing, Beginners Guide.
1). The fit_transform() method fits the scaler on the numerical features and applies the scaling transformation to them. Finally, let’s take a look at the scaled dataset: print(X.head()) # AFTER: # First 5 rows of the whole dataset date bedrooms bathrooms sqft_living sqft_lot floors waterfront view