Skip to main content

A method for visualizing the receiptive fields of a neural network

Project description

Force: A package to visualize the receptive fields

Force is a Python package that allows you to visualize the receptive fields of a neural network.

1. How to Run

To run this algorithm in 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()

All configurable options are in the SBB/config.py file, in the variable CONFIG.

Project details


Release history Release notifications

This version

0.1.4

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for force, version 0.1.4
Filename, size File type Python version Upload date Hashes
Filename, size force-0.1.4.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page