Skip to content

Instantly share code, notes, and snippets.

@andreaschandra
Created April 2, 2018 15:39
Show Gist options
  • Save andreaschandra/409d4db356fb7b21b0eb78a2ca9630f0 to your computer and use it in GitHub Desktop.
Save andreaschandra/409d4db356fb7b21b0eb78a2ca9630f0 to your computer and use it in GitHub Desktop.
data_scaler_minmax = preprocessing.MinMaxScaler(feature_range=(0, 1))
data_scaled_minmax = data_scaler_minmax.fit_transform(input)
data_scaled_minmax
output:
array([[ 0.8, 0. , 0.4],
[ 0. , 1. , 0. ],
[ 1. , 0. , 1. ]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment