Skip to content

Instantly share code, notes, and snippets.

@under0tech
Created September 16, 2022 17:57
Show Gist options
  • Save under0tech/9007787c0d2fbabcff88c4c16e4b9947 to your computer and use it in GitHub Desktop.
Save under0tech/9007787c0d2fbabcff88c4c16e4b9947 to your computer and use it in GitHub Desktop.
# Scale data for ML engine
scaler = MinMaxScaler()
init_df['close'] = scaler.fit_transform(np.expand_dims(init_df['close'].values, axis=1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment