Skip to content

Instantly share code, notes, and snippets.

@srishtis
Created October 5, 2018 09:46
Show Gist options
  • Save srishtis/f9e7d58912da5903a55084c6e93c7a69 to your computer and use it in GitHub Desktop.
Save srishtis/f9e7d58912da5903a55084c6e93c7a69 to your computer and use it in GitHub Desktop.
Scale all X columns of iris data
from sklearn.preprocessing import StandardScale
# let us now standardize the dataset
iris_X_std = StandardScaler().fit_transform(iris_X)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment