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.
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.legacyis not supported in Keras 3. When usingtf.keras, to continue using atf.keras.optimizers.legacyoptimizer, you can install thetf_keraspackage (Keras 2) and set the environment variableTF_USE_LEGACY_KERAS=Trueto configure TensorFlow to usetf_keraswhen accessingtf.keras.