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
Asked
Active
Viewed 1,153 times
0
-
No error posted – PermanentPon Dec 09 '21 at 11:06
-
Does this answer your question? [AttributeError: 'Model' object has no attribute 'predict\_classes'](https://stackoverflow.com/questions/44806125/attributeerror-model-object-has-no-attribute-predict-classes) – David Lukas Dec 09 '21 at 14:45
1 Answers
0
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)
).

Rohith
- 1
- 1
- 1