Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left
01 D 00 H : 35 M : 14 S Apply NowLet's standardize our dataset using the StandardScaler
class from the preprocessing
submodule of sklearn
.
Refer to StandardScaler documentation for further details about the method.
Import StandardScaler
from sklearn.preprocessing
.
Create an object named scaler
of the class StandardScaler
.
Call the fit_transform()
method on the object scaler
and provide housing_num
as the dataset. Store the output in a variable named scaled_features
.
Taking you to the next exercise in seconds...
Want to create exercises like this yourself? Click here.
Note - Having trouble with the assessment engine? Follow the steps listed here
Please login to comment
0 Comments
There is 1 new comment.