标签: conv1d

Keras Conv1D 输入是如何指定的?我似乎缺乏维度

我的输入是一个包含 64 个整数的数组。

model = Sequential()
model.add( Input(shape=(68,), name="input"))
model.add(Conv1D(64, 2, activation="relu", padding="same", name="convLayer"))
Run Code Online (Sandbox Code Playgroud)

我的训练集中有 10,000 个这样的数组。我应该指定这个以便 conv1D 工作吗?

我遇到了可怕的事情

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

错误,我真的不明白我需要做什么。

python machine-learning keras tensorflow conv1d

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

标签 统计

conv1d ×1

keras ×1

machine-learning ×1

python ×1

tensorflow ×1