You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer:
I am not from this group, and surely not an expert. What I suggest might be wrong or not the best way, but it did work for me (with the kind help of google).
It seems that keras and tensorflow have gone reorganization and now the keras package sits under tensorflow.keras.
I deleted keras and changed every instance of keras to tensorflow.keras.
Since both dca and kopt require keras for their installation, I manually downloaded them from git and copied them into my site-packages. (Changes are required in both).
Some of the functions are also now located in a new position like this import I had to change:
from keras.objectives import mean_squared_error -> from tensorflow.keras.metrics import mean_squared_error.
It's not the only change, and I suggest you just try to run it and google the functions it can't load to find their new location.
I hope this helps and saves you some time.
Good luck!
Hello, I am trying to install dca but keep getting errors related to keras.
Which dca, keras, tensorflow versions to use?
The text was updated successfully, but these errors were encountered: