neupy.plots.network_structure module

neupy.plots.network_structure.network_structure(connection, ignore_layers=None, filepath=None, show=True)[source]

Draw graphical representation of the layer connection structure in form of directional graph.

connection : BaseLayer instance, BaseNetwork instance
ignore_layers : list or None

List of layer types that needs to be excluded from the plot. Defaults to None.

filepath : str or None

Path to the file that stores graph. None means that file will be saved in temporary file. Defaults to None.

show : bool

True opens PDF file. Defaults to True.


>>> from neupy import layers, plots
>>> connection = layers.Input(10) > layers.Sigmoid(1)
>>> plots.network_structure(connection)