Created
March 29, 2020 11:19
-
-
Save lucifermorningstar1305/c09bd5188ae1873fa91f230bd6c5f2c6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import numpy as np | |
from sklearn import preprocessing | |
features = np.array([[-500, 5], | |
[2, 10], | |
[4, 100], | |
[9, 10]]) | |
# Create the Standard Scaler | |
standard_scaler = preprocessing.StandardScaler() | |
# Apply the Standard Rescaling on our feature maps | |
scaled_feature = standard_scaler.fit_transform(features) | |
print(scaled_feature) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment