![](/img/trans.png)
[英]AttributeError: 'Functional' object has no attribute 'predict_classes''
[英]AttributeError: 'Functional' object has no attribute 'predict_classes'
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
仅适用于Sequential
class。
使用 Model class,您可以使用predict
方法,该方法将为您提供概率向量,然后获得该向量的 argmax(使用argmax
np.argmax(y_pred1,axis=1)
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.