简体   繁体   中英

keras normalization methods

Sorry if the question sounds basic (I'm just trying to make sure since it's hard to discern btw the two). Are

tf.keras.layers.experimental.preprocessing.Normalization()

and

tf.keras.layers.Normalization()

basically the same thing? I am trying to normalize(standardize in this case) the inputs for fitting neural network model using Tensorflow. After googling I found the two choice above. They seem to be the same thing but I'm not so sure. If they aren't the same, could anyone tell me the exact difference? Thanks in advance.

They are technically the same thing. But you should use this one

tf.keras.layers.Normalization()

Because this one is not available anymore.

tf.keras.layers.experimental.preprocessing.Normalization()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM