我正在学习使用keras的Sequential构建神经网络,但在运行以下代码时遇到错误: [[1,4,5],[7,8,15],[13,16,45],[19,32,135]],model.fit(X, y, epochs=10, batch_size=4)Error when checking model target: the list of NumpyExpected to see 1 array(s), but instead got the following list of 3 arrays:
我认为序
batch_size=400, epochs=100, verbose=2,这是我的y_onehot我收到了这个错误信息
ValueError: Error when checking model target: the list of Numpy arrays that you are passing我不知道为什么当y_onehot数组中有四个列表时会出现这个错误。谢谢你的帮助。
我已经成功地实现了一个用于生成音乐的LSTM教程。然而,我正在努力为语言创建一个(我的主要兴趣)。我有一个单词索引,下面是我的数据中的两个例句。1:
ValueError: Error when checking model input: the list of Numpy我没有使用列表,而是尝试将它们转换为numpy数组的列表,但这并没有