Last active
August 22, 2017 19:27
-
-
Save philippslang/ad9f1bd7ba7dda5ddf6fb2874c85d35b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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