Skip to content

Instantly share code, notes, and snippets.

@jireh-father
Forked from theotheo/plotNNFilter.py
Created March 16, 2017 06:49
Show Gist options
  • Select an option

  • Save jireh-father/5395ab88ad864f4733d5f477de2284f0 to your computer and use it in GitHub Desktop.

Select an option

Save jireh-father/5395ab88ad864f4733d5f477de2284f0 to your computer and use it in GitHub Desktop.
def plotNNFilter(units):
filters = units.shape[3]
plt.figure(1, figsize=(20,20))
n_columns = 6
n_rows = math.ceil(tmp.shape[3] / n_columns)
for i in range(0, filters):
plt.subplot(n_rows, n_columns, i+1)
plt.title('Filter ' + str(i))
plt.imshow(units[0,:,:,i], interpolation="nearest", cmap="gray")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment