Open faltinl opened 4 years ago
Tensorflow 2.0 version: https://github.com/evanatyourservice/AdaMod-tf
Keras + Tensorflow 1.x version of AdaMod if anyone interested https://github.com/superkido511/AdaMod-Keras
Hope this can help you :)
Hi, karrynest and tnx for support and suggestions. In R, i.e. under RStudio, i.e. activated my virtual environment r-reticulate
and used it to start the installation process:
> library(reticulate)
> conda_list()
name python
1 Miniconda3 C:\\Miniconda3\\python.exe
2 r-reticulate C:\\Miniconda3\\envs\\r-reticulate\\python.exe
> use_condaenv("r-reticulate")
> reticulate::py_install(c("https://github.com/superkido511/AdaMod-Keras"), pip = TRUE)
and got the following answer:
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
# All requested packages already installed.
Collecting https://github.com/superkido511/AdaMod-Keras
Downloading https://github.com/superkido511/AdaMod-Keras ### NOTE: apparently download is working, however...###
ERROR: Cannot unpack file C:\Users\lf\AppData\Local\Temp\pip-unpack-oc97rttd\AdaMod-Keras
(downloaded from C:\Users\lf\AppData\Local\Temp\pip-req-build-7ft3wqj5, content-type: text/html; charset=utf-8);
cannot detect archive format
ERROR: Cannot determine archive format of C:\Users\lf\AppData\Local\Temp\pip-req-build-7ft3wqj5
Error: Error installing package(s): "https://github.com/superkido511/AdaMod-Keras"
Using the other address provided for AdaMod-tf
produces exactly the same error message. So there is some problem with unpacking the Python packages. Any idea what could be wrong?
I really don't understand why this process didn't produce the expected result, because it worked quite well in other cases.
I am working with Keras for R to experiment with neural networks and I use a Conda virtual environment under Reticulate to occasionally access additional Python packages. My attempt to install optimizer AdaMod, however, fails. I keep getting the following results (to be seen within R under RStudio):
Thus, my virtual environment is there and working. Now I continue:
Under the address https://anaconda.org I can't find anything useful.
Question: how should I proceed to get the AdaMod package installed and available within my R environment as required? Thanks in advance for any useful hint!
Note: This issue is related to the issue
Transfer of a new Python optimizer to Keras in R
rstudio / keras #1049