The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

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