【发布时间】:2022-07-28 21:52:34
【问题描述】:
嗨,需要帮助来解决运行 LSTM 时出现的值错误。似乎在训练数据上一切正常,但预测产生的维度少于预期 我的 x_train 数据形状是 (846, 30, 3),我的 y_train 数据形状是 (846,) 我的 x_test 363, 30, 3),我的 y_test (363) 而 yhat = modell.predict(test_X) 生成 (363, 100 ) enter image description here
-
请edit您的问题包括您的代码文本而不是截图。堆栈溢出图像不应用于文本内容,请参阅Discourage screenshots of code and/or errors 和Why not upload images of code on SO when asking a question 了解原因。有关格式化的说明,请参阅How do I format my code blocks?. minimal reproducible example 显示您尝试过的无效方法将最大限度地提高您获得帮助的机会。见How to Ask。
标签: python lstm valueerror