Skip to content

Instantly share code, notes, and snippets.

@staricon12
Created July 13, 2021 05:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save staricon12/6ef782b44340ccab3144700ffb803424 to your computer and use it in GitHub Desktop.
Save staricon12/6ef782b44340ccab3144700ffb803424 to your computer and use it in GitHub Desktop.
#Normalizing the data
from sklearn.preprocessing import StandardScaler
sc = StandardScaler()
X = sc.fit_transform(X)
print('Normalized data:')
print(X[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment