小编Web*_*ang的帖子

ValueError:“顺序”层的输入 0 与该层不兼容:预期形状=(无,455,30),发现形状=(无,30)

是癌症检测的小项目,它已经有了数据集和colab代码,但是当我执行时出现错误

model.fit(x_train, y_train, epochs=1000)
Run Code Online (Sandbox Code Playgroud)

错误是:

ValueError: Input 0 of layer "sequential" is incompatible with the layer: expected shape=(None, 455, 30), found shape=(None, 30)
Run Code Online (Sandbox Code Playgroud)

我看评论发现其他人也有这个问题

python tensorflow sklearn-pandas

6
推荐指数
1
解决办法
3万
查看次数

标签 统计

python ×1

sklearn-pandas ×1

tensorflow ×1