Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created July 15, 2018 16:54
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 NMZivkovic/0f2d3d72463619e2b5355ea75515ce9f to your computer and use it in GitHub Desktop.
Save NMZivkovic/0f2d3d72463619e2b5355ea75515ce9f to your computer and use it in GitHub Desktop.
# Scalint the data
from sklearn.preprocessing import StandardScaler
scaler = StandardScaler()
X_train = scaler.fit_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