一种神经网络接收场的可视化方法
force的Python项目详细描述
force:一个可视化接收字段的包
force是一个python包,它允许您可视化神经网络的接收字段。
一如何运行
要在Python中运行此算法:
from force.receptive_field import visualize_neuron
from gdbn.dbn import buildDBN
import matplotlib.pyplot as plt
# Make a deep belief network
dbn = buildDBN([1, 100, 1])
# Get the 3rd neuron on the 1st layer. (With Linear averaging)
neuron = visualize_neuron(dbn, 0, 2)
# Plot!
plt.imshow(neuron)
plt.show()
所有可配置的选项都在sbb/config.py文件的变量config中。