【发布时间】:2020-09-01 01:43:05
【问题描述】:
我试图用我的 keras 模型预测手动编码的数据,但它不起作用:
print(np.array([5.1, 3.5, 1.4]).shape)
prediction = model.predict(np.array([5.1, 3.5, 1.4]))
给我:
(3,)
ValueError: Error when checking input: expected dense_13_input to have shape (3,) but got array with shape (1,)
我该如何解决这个问题?谢谢
【问题讨论】:
标签: python machine-learning keras neural-network artificial-intelligence