Skip to content

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

@ASKARTU

Description

@ASKARTU

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions