title: I'm getting this error : 'AttributeError: module 'keras.optimizers' has no attribute 'Adam''
body: <p>I'm trying to run this code in Google Colab :</p>
  <p>from keras import optimizers
  from tensorflow.keras.optimizers import Adam</p>
  <p>for i in range(5):</p>
  <pre><code>print(i)
  model_mix = Model(inputs=[visible, visible1], outputs=x)
  adam = optimizers.Adam(lr=0.01, beta_1=0.9, beta_2=0.999, epsilon=None, decay=0.0, amsgrad=False)
  monitor = EarlyStopping(monitor='val_loss', min_delta=1e-3, patience=6, verbose=2, mode='auto') 
  model_mix.compile(loss=&quot;mean_squared_error&quot;, optimizer=adam)
  model_mix.fit(
      [x_text_train, x_img_train], y_text_train, callbacks=[checkpointer_cnn,monitor],**strong text**
      validation_data=([x_text_test, x_img_test], y_text_test),
      epochs=1000)
  </code></pre>
  <p>It worked fine before but now it is giving me an error. Can someone help me to fix it?</p>