title: Unable to import SGD and Adam from 'keras.optimizers'
body: <p><strong>Trying to run---</strong><br />
  <code>from keras.optimizers import SGD, Adam</code>,<br />
  <strong>I get this error---</strong></p>
  <blockquote>
  <p>Traceback (most recent call last):<br />
    File &quot;C:\Users\usn\Downloads\CNN-Image-Denoising-master ------after the stopping\CNN-Image-Denoising-master\CNN_Image_Denoising.py&quot;, line 15, in &lt;module&gt;<br />
      from keras.optimizers import SGD, Adam<br />
  ImportError: cannot import name 'SGD' from 'keras.optimizers'</p>
  </blockquote>
  <p><strong>as well as this error, if I remove the SGD from import statement---</strong></p>
  <blockquote>
  <p>ImportError: cannot import name 'Adam' from 'keras.optimizers'</p>
  </blockquote>
  <p>I can't find a single solution for this.<br />
  I have Keras and TensorFlow installed. I tried running the program in a virtualenv (no idea how that would help, but a guide similar to what I want mentioned it) but it still doesn't work. If anything, virtualenv makes it worse because it doesn't recognize any of the installed modules. I am using Python 3.9. Running the program in cmd because all the IDEs just create more trouble.</p>
  <p>I am stumped. My knowledge of Python is extremely basic; I just found this thing on GitHub. Any help would be greatly appreciated.</p>