Skip to content

Instantly share code, notes, and snippets.

@AyishaR
Created April 18, 2021 18:20
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 AyishaR/286e1115c833dfca2175a1ed41a387dd to your computer and use it in GitHub Desktop.
Save AyishaR/286e1115c833dfca2175a1ed41a387dd to your computer and use it in GitHub Desktop.
ss_scaler = StandardScaler()
# Fit on training set alone
Xtrain = ss_scaler.fit_transform(Xtrain)
# Use it to transform val and test input
Xval = ss_scaler.transform(Xval)
Xtest = ss_scaler.transform(Xtest)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment