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

hi, i want to use the tensorflow as keras's backend,how i should modify #10

Open
cyzLoveDream opened this issue Jul 5, 2018 · 4 comments

Comments

@cyzLoveDream
Copy link

like title..

@ruidan
Copy link
Owner

ruidan commented Jul 6, 2018

The Keras version for this code is 1.2.1.

If you want to keep the Keras version unchanged, you need to check which version of tensorflow will work with it. You don't need to change much on the code in this way. You may simply switch the backend of Keras from theano to tensorflow and try if it works.

If you want to upgrade Keras to a version that is compatible with more recent tensorflow versions, you need to modify the code a bit. As the api of Keras 2 is different in many places. You may need to read their release documentation.

@harpaj
Copy link

harpaj commented Aug 8, 2018

Hello @cyzLoveDream @ruidan,
I have created a version of the code using Python3, Tensorflow and recent versions of all dependencies, including Keras, in my fork here: https://github.com/harpaj/Unsupervised-Aspect-Extraction. In the master branch, I tried to keep all other things unchanged, results are very similar to those reported in the paper. Most credit goes to @alexeyev, I used some of the changes in his fork.

Hope this helps someone!

@ruidan
Copy link
Owner

ruidan commented Aug 9, 2018

@harpaj Thank you! That is very helpful :)

@cyzLoveDream
Copy link
Author

@harpaj Thank you very much

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

3 participants