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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -