python - keras中的因果填充

标签 python keras conv-neural-network

有人可以解释 Keras 中“因果”填充背后的直觉吗?是否有任何特定的应用程序可以使用它?

keras 手册说这种类型的填充会导致膨胀卷积。 “扩张”卷积到底是什么意思?

最佳答案

这是关于什么是“因果”填充的一个非常简洁的解释:

One thing that Conv1D does allow us to specify is padding="causal". This simply pads the layer's input with zeros in the front so that we can also predict the values of early time steps in the frame:

enter image description here

扩张只是意味着跳过节点。与 strides 告诉你接下来在哪里应用内核不同,dilation 告诉你如何传播你的内核。从某种意义上说,它相当于在上一层迈出了一大步。

enter image description here

在上图中,如果下层的步幅为 2,我们将跳过 (2,3,4,5),这会给我们相同的结果。

来源:Kilian Batzner,Convolutions in Autoregressive Neural Networks

关于python - keras中的因果填充,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52578950/

相关文章:

python - 如何删除 Python 3 中整数变量和字符串之间的空格?

python - 如何在keras中实现麦克劳林系列?

machine-learning - 深度学习多输入 CNN

neural-network - 如何在短对排序中使用学习排序模型(CNN、LSTM)?

python - 类型错误: The added layer must be an instance of class Layer.在0x000001622999A5F8>处找到: <keras.layers.core.Dropout对象

python - 使用 .onnx 模型的 OpenCV(Ptyhon)的 DNN 模块中的前向方法错误

python - 我可以在 Google 的 ortools 包中提供一个带有 BFS 的求解器来启动吗?

python - 用python制作解密程序

python - 在外壳中运行视觉选择,将输出发送到新窗口

r - 使用 doParallel 在 R 中并行化 keras 模型