AML (Advanced Machine Learning)
AML (Advanced Machine Learning)
𝑚 𝑛
(𝐼 ∗ 𝐾)(𝑥, 𝑦) = 𝛴ⅈ=1 𝛴𝑗=1 𝐼(𝑥 − 𝑖, 𝑦 − 𝑗) ⋅ 𝐾(𝑖, 𝑗) ) where:
o 𝐼 is the input image.
o 𝐾 is the filter/kernel.
o (x, 𝑦) represents the spatial coordinates of the output
feature map.
o (𝑖, 𝑗) represents the spatial coordinates within the filter.
o 𝑚 and 𝑛 are the dimensions of the filter/kernel.
- Each filter in a CNN has a weight parameter for each element in the
filter.
- Given that the input sequence consists of 20 words and the filter
size is 3 with a stride of 1.
- Without padding, the size of the convolved output is: (input size -
filter size + 1) = (20 - 3 + 1) = 18.
- With the same filter size of 3 and a stride of 1, the size of the
convolved output would remain the same as the padded input size:
22.
4) If the stride is 2:
- Without padding, the size of the convolved output would be: (input
size - filter size) / stride + 1 = (20 - 3) / 2 + 1 = 9.