理解卷积神经网络(CNN)四个基本概念二:池化

池化的目的是采样,减少计算量

import numpy as np

feature_map = np.array([
    [1, 1, 1, 1],
    [1, 1, 1, 1],
    [2, 2, 2, 2],
    [2, 2, 2, 2]
])

print('特征图:\n', feature_map)

pooled = np.zeros((2, 2))

for i in range(0, 4, 2):
    for j in range(0, 4, 2):
        pooled[i // 2, j // 2] = np.max(feature_map[i[......]

继续阅读

How to show indicator icons in the panel in Debian.

This extension is ‘appindicators’ from ubuntu, renamed ‘top indicator app’ under the terms of the GPL v2 +. it is the extension itself that Ubuntu offers as a native experience on your system, but so you can install it in other distros since the current one in gnome-extensions is empty.I will offe[……]

继续阅读