in google colaboratory using python, I am trying to load model to classify I am trying to load keras model using python to classify image, I am getting above error
predict_classes
is only available for the Sequential
class.
With the Model class, you can use the predict
method which will give you a vector of probabilities and then get the argmax
of this vector (with np.argmax(y_pred1,axis=1)
).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.