Skip to content

Instantly share code, notes, and snippets.

@philippslang
Last active August 22, 2017 19:27
Show Gist options
  • Save philippslang/ad9f1bd7ba7dda5ddf6fb2874c85d35b to your computer and use it in GitHub Desktop.
Save philippslang/ad9f1bd7ba7dda5ddf6fb2874c85d35b to your computer and use it in GitHub Desktop.
Scaler = preproc.MinMaxScaler
normalizer_features = Scaler(copy=False)
normalizer_features.fit_transform(features.reshape(num_sequences*num_timesteps, num_features))
normalizer_targets = Scaler(feature_range=(0, 1), copy=False) # sigmoid
normalizer_targets.fit_transform(targets.reshape(num_sequences*num_timesteps, num_targets))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment