Created
September 26, 2021 13:50
-
-
Save erap129/b4ab26ca5f3a393c01ccd0ff40102e9a to your computer and use it in GitHub Desktop.
NASA RUL project - creating scalers
This file contains hidden or 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
MIN_MAX_SCALERS = {} | |
for col_name in SENSOR_COLUMN_NAMES: | |
scaler = MinMaxScaler() | |
train_df[col_name] = scaler.fit_transform(train_df[col_name].values.reshape(-1, 1)).squeeze() | |
MIN_MAX_SCALERS[col_name] = scaler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment