小编Bro*_*own的帖子

ValueError:预期 min_ndim=3,发现 ndim=2

我正在尝试将输入分类。

形状是:

df_train.shape: (17980, 380)
df_validation.shape: (17980, 380)
Run Code Online (Sandbox Code Playgroud)

但是,当我运行代码时,出现以下错误

ValueError: Input 0 of layer conv1d is incompatible with the layer: : expected min_ndim=3, found ndim=2. Full shape received: [32, 380]
Run Code Online (Sandbox Code Playgroud)

我们如何修复这个错误?

python machine-learning python-3.x keras tensorflow

1
推荐指数
1
解决办法
6744
查看次数

标签 统计

keras ×1

machine-learning ×1

python ×1

python-3.x ×1

tensorflow ×1