-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Error in py_get_attr_impl(x, name, silent) :
AttributeError: 'Sequential' object has no attribute 'predict_classes'
In addition: Warning message:
In predict_classes(model, x_data_test) :
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 asoftmaxlast-layer activation).model %>% predict(x) %>% k_argmax()
-
if your model does binary classification
(e.g. if it uses asigmoidlast-layer activation).model %>% predict(x) %>%
>(0.5) %>% k_cast("int32")
Metadata
Metadata
Assignees
Labels
No labels