Yann
V1
  • Installation Guide
  • Tutorials
  • Structure of the Yann network
  • Toolbox Documentation
    • network - The network module
    • layers - Contains the definitions of all the types of layers.
    • modules - Modules that are external to the network which the network uses
    • core - Core module contains the fundamentals operations of the toolbox
    • utils - utilities that can be used as enhancement for the toolbox’s functionality
      • dataset - provides a nice port to benchmark and matlab-based datasets
      • graph - provides a nice port to networkx methods related to Yann
      • pickle - provides a way to save the network’ parameters as a pickle file.
      • raster - provides a visualization for rasterizing images.
    • special - contains tools for special types of networks
  • The story behind Yann
  • What is in the toolbox ?
  • License
Yann
  • Docs »
  • Toolbox Documentation »
  • utils - utilities that can be used as enhancement for the toolbox’s functionality »
  • graph - provides a nice port to networkx methods related to Yann
  • Edit on GitHub

graph - provides a nice port to networkx methods related to Yann¶

The file 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:

yann.utils.graph.draw_network(graph, filename='network.pdf', show=False, verbose=2)[source]¶

This is a simple wrapper to the networkx_draw.

Parameters:
  • 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 ?

Notes

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.

Next Previous

© Copyright 2015-2017, Ragav Venkatesan and Other Yann Contributors. Revision 5c4dffa9.

Built with Sphinx using a theme provided by Read the Docs.
Read the Docs v: V1
Versions
latest
v1
dev
Downloads
pdf
htmlzip
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.