kerasR giving error

前端 未结 1 1157
旧时难觅i
旧时难觅i 2021-01-20 19:32

I am trying to use kerasR for deep learning in R. I am trying to reproduce the examples in the package. Trying the following code produces error:

library(ker         


        
1条回答
  •  悲&欢浪女
    2021-01-20 19:41

    I'd suggest to look at this issue in KerasR Github repo: https://github.com/statsmaths/kerasR/issues/1

    Basically you should check where is located your version of python and then use reticulate::use_python("PATH_TO_PYTHON") to tell the system where to find Python.

    Watch Out!
    You can load just one Python interpreter per session and the use_python() function doesn't warn you if there already is a loaded interpreter.
    Moreover if you run py_config() it automatically loads the first interpreter that he finds (which, in your case, seems to be the wrong one!), thus you'd better call reticulate::use_python("PATH_TO_PYTHON") before anything else.

    0 讨论(0)
提交回复
热议问题