r - kerasR giving error -


i trying use kerasr deep learning in r. trying reproduce examples in package. trying following code produces error:

library(kerasr) mod <- sequential() 

the error is:

error in sequential() : attempt apply non-function 

i'd suggest @ issue in kerasr github repo: https://github.com/statsmaths/kerasr/issues/1

basically should check located version of python , use reticulate::use_python("path_to_python") tell system find python.

watch out!
can load 1 python interpreter per session , use_python() function doesn't warn if there loaded interpreter.
if run py_config() automatically loads first interpreter finds (which, in case, seems wrong one!), you'd better call reticulate::use_python("path_to_python") before else.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -