0

Error in importing keras.optimizers.schedules

ImportError Traceback (most recent call last) in ----> 1 from keras.optimizers import schedules ImportError: cannot import name 'schedules' from 'keras.optimizers' (C:\Users\hp\Roaming\anaconda3-64bit\lib\site-packages\keras\optimizers.py) I have tensorflow version 1.13.1 and keras version 2.3.1 and conda version 4.6.14

8th Jun 2020, 7:37 AM
Punyasloka Sahoo
Punyasloka Sahoo - avatar
2 Réponses
+ 1
Punyasloka Sahoo Hmm... Are you sure that tf v.1 has it? Perhaps you need to upgrade tf? Or try importing from tf.keras.optimizers?
10th Jun 2020, 8:00 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
0
Upgrading it v2.2 did help
27th Jul 2020, 5:46 AM
Punyasloka Sahoo
Punyasloka Sahoo - avatar