https://stackoverflow.com/questions/68836551/keras-attributeerror-sequential-object-has-no-attribute-predict-classes This function were removed in TensorFlow version 2.6. According to the keras in https://keras.rstudio.com/reference/predict_proba.html#details BTW, waiting for a patch :)