Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

ImportError: cannot import name 'Adadelta' from 'keras.optimizers' #33

Open
ReetuData opened this issue Sep 20, 2021 · 0 comments
Open

Comments

@ReetuData
Copy link

Hi @ParikhKadam @dharaneepatel15

I have been trying to recreate your model code. But it has been keep throwing me below error. I have installed all six mentioned dependencies. Don't know how to fix this issue. Here's the link of my google colab notebook .

---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
in
----> 1 from bidaf.models import BidirectionalAttentionFlow
2 from bidaf.scripts import load_data_generators
3
4 bidaf_model = BidirectionalAttentionFlow(400)
5 bidaf_model.load_bidaf("/path/to/model.h5") # when you want to resume training

~\AppData\Roaming\Python\Python38\site-packages\bidaf\models_init_.py in
----> 1 from .bidaf import BidirectionalAttentionFlow

~\AppData\Roaming\Python\Python38\site-packages\bidaf\models\bidaf.py in
1 from keras.layers import Input, TimeDistributed, LSTM, Bidirectional
2 from keras.models import Model, load_model
----> 3 from keras.optimizers import Adadelta
4 from keras.callbacks import CSVLogger, ModelCheckpoint
5 from ..layers import Highway, Similarity, C2QAttention, Q2CAttention, MergedContext, SpanBegin, SpanEnd, CombineOutputs

ImportError: cannot import name 'Adadelta' from 'keras.optimizers' (C:...........\AppData\Roaming\Python\Python38\site-packages\keras\optimizers.py)

Any idea and suggestion would be highly appreciated. Thanks

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

No branches or pull requests

1 participant