600454 (1) [Avatar] Offline
#1
Hi! I am running Rstudion Version 1.1.453, keras version 2.2.0

I was following the example in Chapter 3 until listing 3.9 Retraining a model from scratch. Runnng the code I got this message:

>results <- model %>% evaluate(x_test, y_test)
Error in UseMethod("evaluate") :
no applicable method for 'evaluate' applied to an object of class "keras_training_history"

> model %>% predict(x_test[1:10,])
Error in UseMethod("predict") :
no applicable method for 'predict' applied to an object of class "keras_training_history"

What could be the problem?
536767 (1) [Avatar] Offline
#2
it is a tensorflow function so you may need to load the package into your environment or install it if not already