Created
January 8, 2019 15:55
-
-
Save finnqiao/babca62e9f9d835eea4d6274e84e9e51 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
# Normalizing continuous variables | |
from sklearn.preprocessing import MinMaxScaler | |
scaler = MinMaxScaler(feature_range = (0,1)) | |
scaler.fit(X_train) | |
X_train = scaler.transform(X_train) | |
X_test = scaler.transform(X_test) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment