Package pylearn :: Package sandbox :: Module image_tools
[hide private]

Module image_tools

source code

Functions [hide private]
 
make_weights_image(mat, xres, yres, i, j, nrow, ncol)
Displays the filters implemented by a weight matrix.
source code

Imports: numpy


Function Details [hide private]

make_weights_image(mat, xres, yres, i, j, nrow, ncol)

source code 

Displays the filters implemented by a weight matrix.

Each filter corresponds to a row of mat and will be represented by a xres*yres image.

Units from i to j will be included in the picture.

The picture will have nrow rows of filters and ncol columns of filters. Unused spots for filters will be filled with zeros.

The return value is a matrix suitable for display with matplotlib's imshow.