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

Which keras version to use? #55

Open
Nayrouz109 opened this issue Aug 20, 2022 · 1 comment
Open

Which keras version to use? #55

Nayrouz109 opened this issue Aug 20, 2022 · 1 comment

Comments

@Nayrouz109
Copy link

Nayrouz109 commented Aug 20, 2022

Hello, I am trying to install dca but keep getting errors related to keras.

Which dca, keras, tensorflow versions to use?

@onahman
Copy link

onahman commented Nov 26, 2022

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!

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

2 participants