Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'SGD' from 'keras.optimizers' #4

Open
ASKARTU opened this issue Nov 8, 2021 · 0 comments
Open

ImportError: cannot import name 'SGD' from 'keras.optimizers' #4

ASKARTU opened this issue Nov 8, 2021 · 0 comments

Comments

@ASKARTU
Copy link

ASKARTU commented Nov 8, 2021

Hi,

And even with the help of SOF I still cannot reproduce the numbers you've got in your git. I'm getting the following:

Epoch 1/5
13013/13013 [==============================] - 17s 1ms/step - loss: 825128.0000 - acc: 0.8998 - val_loss: 211068.5156 - val_acc: 0.9019
Epoch 2/5
13013/13013 [==============================] - 16s 1ms/step - loss: 766153.7500 - acc: 0.9068 - val_loss: 582742.2500 - val_acc: 0.8027


ImportError Traceback (most recent call last)
in ()
1 from keras.models import Sequential
2 from keras.layers import Dense, Activation
----> 3 from keras.optimizers import SGD

ImportError: cannot import name 'SGD' from 'keras.optimizers' (/usr/local/lib/python3.7/dist-packages/keras/optimizers.py)


NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant