pylissom.utils.plotting¶
Submodules¶
pylissom.utils.plotting.layers module¶
Some functions to plot specifically weights and activations of Lissom modules
-
pylissom.utils.plotting.layers.
plot_layer_weights
(layer, use_range=True, recursive=False, prefix='')[source]¶ Assumes layer parameters are weights and plots them :param layer: Plots weights (parameters) of this layer :param use_range: Normalize the image values between (0, 1) or (-1, 1) if layer is
pylissom.nn.modules.lissom.DifferenceOfGaussiansLinear
:param recursive: Plot weights of children modules recursively :param prefix: Title of plot
-
pylissom.utils.plotting.layers.
plot_layer_activation
(layer, prefix='')[source]¶ Plots input and activation of layer and children modules recursively
Assumes layer has input and output parameters defined (probably defined with
pylissom.nn.modules.register_recursive_input_output_hook()
Parameters: - layer – Layer to plot
- prefix – Title of plot
pylissom.utils.plotting.matrix module¶
Some plotting functions that receive numpy
matrices as input
-
pylissom.utils.plotting.matrix.
plot_matrix
(img, vmin=0, vmax=1)[source]¶ Plots a numpy matrix in grayscale normalizing with vmin, vmax
-
pylissom.utils.plotting.matrix.
plot_dict_matrices
(imgs)[source]¶ Parameters: imgs – Dictionary of {title: numpy matrix} items