NeuralNetGraph

NeuralNetGraph

NeuralNetGraph[net, options...] returns a directed graph with neurons as vertices and weights as edges representing the neural network. Use ShowGraph or ShowLabeledGraph from the DiscreteMath`Combinatorica` package to display the graph.
The layout and style is automatically selected depending on the NeuralNetType and number of weights. The GraphLayout option can be used to specify the layout. The UseColor option can be set to False for black and white output. The UseStyle option enables/disables the different kinds of arrows depending on the relative value of the weights. The StyleRange option can be used to specify the maximum/minimum weights used in determining the relative weight styles.
The neural net weights are assigned to the edges as EdgeWeight to facilitate analysis with the algorithms in Combinatorica. See the individual options for further information.

NeuralNetGraph Default Options

GraphLayoutAutomatic, UseColorTrue, UseStyleAutomatic, StyleRangeAutomatic

GraphLayout

GraphLayout is an option of NeuralNetGraph that specifies the style of the graph. It can be either LayerStyle or HasseStyle. LayerStyle shows each layer on a vertical line from left to right. HasseStyle arranges the neurons from input to output with input at the bottom. HasseStyle requires more processing time but is more suited to display Shortcut NeuralNets. The default behavior is to use LayerStyle for Layer NeuralNets and HasseStyle for Shortcut NeuralNets

HasseStyle

HasseStyle can be used as a value for GraphLayout, an option of NeuralNetGraph.

LayerStyle

LayerStyle can be used as a value for GraphLayout, an option of NeuralNetGraph.

StyleRange

StyleRange is an option of NeuralNetGraph that specifies the range that weights are assumed to take on. It is specified as {minimum, maximum} and implies that UseStyle is true. It is used when determining the EdgeStyles for the weights in the Graph. The default is to use the minimum/maximum values present in the weights.

UseColor

UseColor is a boolean option of NeuralNetGraph that specifies whether color is used to distinguish positive and negative weights and bias in the graph. The default is to include color information.

UseStyle

UseStyle is a boolean option of NeuralNetGraph that specifies whether EdgeStyles are used to display the relative magnitude of weights. There are four styles used: Thin dashed for 0-25%, thin for 25-50%, normal for 50-75% and thick for 75-100%. The relative weights are calculated independently for positive and negative values, so used with colors there are eight levels. The default for positive weights is to use the range from 0 to the maximum weight present and for negative weights from 0 to minimum weight present. The option StyleRange can be used to change the minimum/maximum used. The Automatic setting is to disable the weight style for neural networks with a large number of weights.


Created by freegoldbar  (September 16, 2004)

Hosted by www.Geocities.ws

1