I am running keras
library from R
under eclipse / statET / windows 10. After to fit a model, I am trying to run the following code:
history <- model %>% fit_generator(train_generator, steps_per_epoch = 100, epochs = 30, validation_data = validation_generator, validation_steps = 50)
jpeg(filename="figuras/history.jpg")
plot(history)
dev.off()
But no figure is drawn. Nevertheless, if I execute the same sententes above shown in the command line of statET, or I run the whole script from R, it works fine: could someone explain such behaviour?