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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -