graph - provides a nice port to networkx methods related to Yann¶
yann.utils.graph.py contains the definition for the networkx ports. If
networkx was installed, each network class also creates a
networkx.DiGraph within itself
which is accessible through net = network(), net.graph. In each layer some representative
nodes (max limited) will be added to this graph and can be seen at net.graph.nodes().
Its attributes will be layer prorperties such as type, output_shape and so on.
yann.utils.graph has some ports that uses this networkx graph.
This includes: draw_network which draws the network.
The documentation follows:
draw_network(graph, filename='network.pdf', show=False, verbose=2)¶
This is a simple wrapper to the networkx_draw.
- graph – Supply a networkx graph object. NNs are all DiGraphs.
- filename – what file to save down as. Will add ‘.png’ to the end.
- verbose – Do I even have to talk about this ?
Takes any format that networkx plotter takes. This is not ready to be used. Still buggy sometimes. Rudra is working on developing this further internally. This is slow at the moment.