Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: keras.optimizers.legacy is not supported in Keras 3 #14

Open
saraxvn opened this issue Nov 27, 2024 · 0 comments
Open

ImportError: keras.optimizers.legacy is not supported in Keras 3 #14

saraxvn opened this issue Nov 27, 2024 · 0 comments

Comments

@saraxvn
Copy link

saraxvn commented Nov 27, 2024

When trying to run nlc.nonlincausalitymeasureNN, I come across the below error, even when I follow the suggestions i.e., installing tf_keras etc. I also tried downgrading keras and tensorflow, but I still get the same error.

I would be grateful if you could provide some assistance on this, as I am very interested in using this package. Many thanks!

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.

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

No branches or pull requests

1 participant