mrosol / Nonlincausality

Python package for Granger causality test with nonlinear forecasting methods.
MIT License
70 stars 13 forks source link

ImportError: keras.optimizers.legacy #11

Open EVDIO opened 2 weeks ago

EVDIO commented 2 weeks ago

I get this error. Calling Adam like that is not compatible anymore for Keras 3.

ImportError: keras.optimizers.legacy is not supported in Keras 3. When using tf.keras, to continue using a tf.keras.optimizers.legacy optimizer, you can install the tf_keras package (Keras 2) and set the environment variable TF_USE_LEGACY_KERAS=True to configure TensorFlow to use tf_keras when accessing tf.keras.