Created
January 16, 2021 17:38
-
-
Save AyishaR/35cf4456908d5cd2ffce73c386c3f325 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Each feature has a different range. | |
# Using min_max_scaler to scale them to values in the range [0,1]. | |
min_max_scaler = MinMaxScaler() | |
# Fit on training set alone | |
Xtrain = min_max_scaler.fit_transform(Xtrain) | |
# Use it to transform val and test input | |
Xval = min_max_scaler.transform(Xval) | |
Xtest = min_max_scaler.transform(Xtest) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment