Skip to content

Instantly share code, notes, and snippets.

@javaeeeee
Created July 5, 2021 20:43
Show Gist options
  • Save javaeeeee/370fc0552e7d2d587adbcdfcc1961e08 to your computer and use it in GitHub Desktop.
Save javaeeeee/370fc0552e7d2d587adbcdfcc1961e08 to your computer and use it in GitHub Desktop.
Tensorflow Preprocessing Normalizer
normalizer = preprocessing.Normalization(axis=-1)
normalizer.adapt(np.array(X_train))
normalizer.mean.numpy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment