最佳答案
最后,在给定图中,我确定了与卷积层关联的权重和偏差参数的数量。
对于过滤器尺寸= 4,
total weight parameters = 4 * 5 = 20
total bias parameters = 1
Since, total filters = 2, so total parameters = (4 * 5 + 1) * 2 = 42
由于过滤器的大小为4,因此从
4 x 5
矩阵中,我们最终将仅获得一个特征值。因此,kernel_value(1 x 20) x weight_param(20 x 1)
产生1个特征值。包括1个偏差参数,所需的总参数为(20 + 1) = 21
。如果过滤器尺寸= 3,
total weight parameters = 3 * 5 = 15
total bias parameters = 1
Since, total filters = 2, so total parameters = (3 * 5 + 1) * 2 = 32
对于过滤器尺寸= 2,
total weight parameters = 2 * 5 = 10
total bias parameters = 1
Since, total filters = 2, so total parameters = (2 * 5 + 1) * 2 = 22
因此,总权重和偏差参数= 42 + 32 + 22 = 96。
关于deep-learning - 与此CNN相关的权重和偏差参数有多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42451949/