理解keras的CNN中padding='causal'

本文深入解析了Keras中Conv1D层的padding='causal'选项。'causal'填充会在输入数据前面添加零,使得模型能预测时间序列的早期步骤。此外,还介绍了膨胀(dilation)的概念,它类似于前一层的步长,用于扩展滤波器的覆盖范围。
摘要由CSDN通过智能技术生成

This is a great concise explanation about what is “causal” padding:

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:

在这里插入图片描述

Dilation just means skipping nodes. Unlike strides which tells you where to apply the kernel next, dilation tells you how to spread your kernel. In a sense, it is equivalent to a stride in the previous layer.

在这里插入图片描述In the image above, if the lower layer had a stride of 2, we would skip (2,3,4,5) and this would have given us the same results.

reference:
Causal padding in keras
Convolutions in Autoregressive Neural Networks

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值