繁体   English   中英

AttributeError:“功能”object 没有属性“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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM