我是数据科学和神经网络的新手。我有一个unicode句子的数据集,对于'spam‘或'not_spam’,它们被标记为0和1。我用于数据的Model是以下代码(不包括数据预处理): from keras.models import Model
from keras.layers import LSTM, Activation,但是现在我修改了我的数据集。我添加了6列,而不是“垃圾邮件”列,这样我的
[0][4] = out1 #Replace the 4th element with previous output out1然后,我将“input_layer_B”添加到“dense_layer_1”以创建一个新的输出“out2”(某种程度上是递归,它也可以应用于for循环中)。])
当我运行模型时,我得到了一个错误(