Керас -импорт оптимизатор Адам
from tensorflow.keras.optimizers import Adam
from tensorflow.keras.optimizers import Adam # - Works
from tensorflow.keras.optimizers import adam # - Does not work
from keras.optimizers import Adam # - Does not work
from keras.optimizers import adam # - Does not work
coder