fmenat / PyLearningCrowds

Some learning from crowds methods implemented in Python
6 stars 1 forks source link

ModuleNotFoundError: No module named ‘keras.engine’ #1

Closed PepijndeReus closed 9 months ago

PepijndeReus commented 9 months ago

https://github.com/fmenat/PyLearningCrowds/blob/5a7fb10485aa6c167314c10c0484dea8eae2ec5e/codeE/learning_models.py#L296 The line of code above ouputs:

ModuleNotFoundError: No module named ‘keras.engine’ There is no module keras.engine. From tensorflow 2.x onwords all of the sub modules under the keras.engine are under different modules within the tf.keras. You can import keras using import keras directly or from tensorflow import keras.

Module engine is now integrated into module layer. Suggested fix is provided on StackOverflow

PepijndeReus commented 9 months ago

To be complete: encountered during running the Label Me tutorial