How to Solve NameError: name 'BatchNormalization' is not defined -- keras

Solution: Import the 'BatchNormalization' module

To Solve the error, add the following line to the top of your code.

from keras.layers.normalization import BatchNormalization

 

For more information:
Python keras BatchNormalization