── Warning (test_logistic_reg_keras.R:186:3): classification probabilities ─────
`predict_proba()` is deprecated and was removed from tensorflow in version 2.6, please use `predict()` instead
Backtrace:
1. stats::predict(plrfit, te_dat[, -1], type = "prob") test_logistic_reg_keras.R:186:2
6. keras::predict_proba(object = object$fit, x = as.matrix(new_data))
-- Warning (test_multinom_reg_keras.R:124:3): classification prediction --------
`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")
We are getting these warnings: