-
Notifications
You must be signed in to change notification settings - Fork 282
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
Transfer of a new Python optimizer to Keras in R #1049
Comments
Hi. I think for now you could experiment with optimizers from TF Addons. |
Hi,-
I suspect I have to install Please advise how I should proceed. Tnx in advance! |
The best solution is the following from fresh Session:
|
Thanks for Support. I got the following returns:
Then, installation started quite smoothly...
...but towards the end some problems appeared:
Any ideas what I could do? Namely - the worst of all is that the GPU part of Tensorflow seems to be damaged somehow, since when trying to run one of my previously functioning network programs I get a long error log ending in
OMG. |
Sometimes, the installation of python modules can cause an issue for me as well. In this case, I remove the environment (folder) from the path and then run
|
After having removed the environment
and the remaining environment
Do I install tensorflow into this environment? I rather thought to install it via RStudio in R, but when I tried that, I got
which is not unexpected, since the existing package tensorflow has been removed when I deleted the environment |
Yes, you have to create an environment and then start installing. With reticulate you can install :
|
Sorry to molest you again and again...
What I have also tried was
This was the process I applied when I installed |
Does it work? https://rstudio.github.io/reticulate/articles/python_packages.html
|
Thank you so much. In the meantime I did more or less that, except that for compatibility with Windows I wrote
After quite a lot of problems I finally managed to get my Regarding
I finally got the message
I guess this means that By the way - is |
That's great news! Yes, they should work with Functional API, as well. |
Oh yeah, good to know. Just one more question regarding the installation process: Towards the end of the
I know, this is not directly related to our main topic In any case, I am very grateful for your support - I really appreciate it. All the best to you and the project |
Please, follow the steps here: https://helpdeskgeek.com/windows-10/add-windows-path-environment-variable/ |
Ok, I did as advised and it's working - thank you again! |
This issue looks resolved 🎉 Please file a new issue if you're still having problems. |
Important progress has been made in developing adaptive optimizers which are able to overcome the hurdle of oscillating between local optima, causing non-convergence problems and poor generalization performance. The challenge is beautifully illustrated by pictures devoted to a collection of optimizers for Pytorch, designed to overcome these problems.
I am particularly interested in the optimizer adamod which has been investigated thoroughly elsewhere. It is easy to install and import this Python optimizer into the virtual environment established by Keras for R applying the usual simple process to transfer Python functions into this environment. In Python power shell,
installs adamod 0.0.3 into the virtual environment r-reticulate. An then, in Keras for R, with
the import into R is readily done. The usual
compile()
function of Keras, however, does not recognize the newly definedoptimizer_adamod()
and its parameters. And this raises the question: How can I transform this optimizer into a form compatible with Keras for R?Any hints would be highly appreciated!
The text was updated successfully, but these errors were encountered: