当我将lambda层添加到我的序列模型中时,它给出了ValueError: Input0 is incompatible with ...对于这个模型,我得到了ValueError: Input0 is incompatible with layerflatten_1: expectedmin_ndim=3, found
我收到了来自Keras的非常混乱的错误消息。我使用以下模型,并将其传递给形状(num_examples, n, 1)的输入。when checking target: expected dense_16 to have 2 dimensions, but got array with shape (11030, 50, 1此外,如果我试图在LSTM和Dense之间添加model.add(Flatten()),就会得到以下错误:ValueError: Input<
在运行它之后,我得到了这个错误-:ValueError: Input0 of layer sequential_4 is incompatible with the layer: expectedndim=4, foundndim=3.但是我在运行模型-:ValueError: Input0 of layer</
177] #get train datatest = tf.convert_to_tensor(train_df)ValueError: Input0 of layer sequential_13 is incompatible with the layer: : expectedmin_ndim=3, found<e