Обновите версию Keras
pip install keras --upgrade
# or
$ python -m pip install -U keras
Trained Tuna
pip install keras --upgrade
# or
$ python -m pip install -U keras