Formula

Boxcar Attention Kernel

The boxcar kernel is an attention pooling kernel defined by the formula α(x)=1 if x<1.0 else 0\alpha(x) = 1 \text{ if } |x| < 1.0 \text{ else } 0. It acts as an indicator function, indiscriminately attending only to observations within a distance of 1 (or another defined hyperparameter) and assigning a weight of zero to all other observations.

0

1

Updated 2026-06-30

Tags

D2L

Dive into Deep Learning @ D2L