keras_model_sequential() crashes RstudioCloud

It seems that keras-tensorflow project couldn't be launched in RstudioCloud

#loading libraries
cat("loading lib : keras")

creating network

cat(" - création réseau : modelSimple")
modelSimple <- keras_model_sequential()

Last line crashes RstudioCloud
Thanks in advance

Very likely you are running out of RAM memory, have in mind that RStudio Cloud has a 1GB RAM memory limit.

Hi Andrès

Possibly, but this happens at the creation of the network before defining the structure and before feeding with data....
My network will be relatively small.
Do you know if it is possible to size a model at the creation stage.
Thank you for your support.

Sorry I don't know how, but you would have better luck asking this question on the #ml category.


Looking at the logs from your project I see multiple occasions where the R session crashed. This typically happens on cloud when memory use exceeds the 1GB limit. I also found an R error which may be useful:

ERROR r error 4 (R code execution error) [errormsg=Error in x[[n]] : ||| attempt to select less than one element in integerOneIndex|||];

Hope that information is helpful.


This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.