You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1: In keras::predict_classes(object = object$fit, x = as.matrix(new_data)) :
`predict_classes()` is deprecated and and was removed from tensorflow in version 2.6.
Please update your code:
* If your model does multi-class classification:
(e.g. if it uses a `softmax` last-layer activation).
model %>% predict(x) %>% k_argmax()
* if your model does binary classification
(e.g. if it uses a `sigmoid` last-layer activation).
model %>% predict(x) %>% `>`(0.5) %>% k_cast("int32")
I went to here to work through the R-keras example:
https://tensorflow.rstudio.com/guide/keras/
There is a command 'predict_classes' that is now deprecated in keras.
--> if I knew how to insert images, I would put the screenshot of the error here <--
You should keep your help documentation reasonably current.
The way to get it to work is:
model %>% predict(x_test) %>% k_argmax()
The text was updated successfully, but these errors were encountered: