keras_model_sequential() crashes RstudioCloud

https://rstudio.cloud/project/543521

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

rm(list=ls())
#loading libraries
cat("loading lib : keras")
library(keras)
library(tensorflow)

creating network

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

Last line crashes RstudioCloud
Thanks in advance
Jab

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.

Hello,

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.

Best,
Ming

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