Hi,-
thanks for reply. I can't tell which of keras or kerasR I am (or my programs are) actually using, as I have to call both of them - always. In each of my programs, I call them by library(keras) and library(kerasR); I got the impression they "need each other", neither can do without the other. Btw, I have keras v2.1.1.9001 and kerasR v0.6.1 installed.
Creating a reprex in this post proved a problem in itself, as I got the following error message when installing and using reprex() exactly as indicated (sorry about all that):
reprex()
Rendering reprex...
Error in r(func, args = args, libpath = libpath, repos = repos, cmdargs = cmdargs, :
unused argument (spinner = TRUE)
So, in order to proceed to my initial problem, I just provide a copy of a short NN-program example which exhibits exactly the behaviour I described in my previous posts:
library(kerasR)
library(keras)
model <- keras_model_sequential() %>%
layer_dense(units = 32, activation = "relu", input_shape = c(64)) %>%
layer_dense(units = 32, activation = "relu") %>%
layer_dense(units = 10, activation = "softmax")
model %>% compile(
optimizer = "rmsprop",
loss = "categorical_crossentropy",
metrics = c("accuracy")
)
x_train <- array(runif(1000 * 64), dim = c(1000, 64))
y_train <- array(runif(1000 * 10), dim = c(1000, 10))
model %>% fit(
x_train,
y_train,
epochs = 10, # exchange to <10 to initiate a real-time display in viewer pane!
batch_size = 128,
verbose = 2,
view_metrics = "auto",
validation_split = 0.2)
If I run this program as is (i.e. epochs=10 or greater), the viewer pane gets empty and then, by clicking "View in new window" I am able to look at the real time proceedings in my browser only. For epochs=9 or lower, the display starts immediately in the viewer pane as I would like it to in any other case, too.
Looking forward,
Leo