Neural Network Toolbox Previous page   Next Page

Network Properties

The properties define the basic features of a network. Subobject Properties describes properties that define network details.

Architecture

These properties determine the number of network subobjects (which include inputs, layers, outputs, targets, biases, and weights), and how they are connected.

numInputs

This property defines the number of inputs a network receives.

It can be set to 0 or a positive integer.

Clarification.   The number of network inputs and the size of a network input are not the same thing. The number of inputs defines how many sets of vectors the network receives as input. The size of each input (i.e. the number of elements in each input vector) is determined by the input size (net.inputs{i}.size).

Most networks have only one input, whose size is determined by the problem.

Side Effects.   Any change to this property results in a change in the size of the matrix defining connections to layers from inputs, (net.inputConnect) and the size of the cell array of input subobjects (net.inputs).

numLayers

This property defines the number of layers a network has.

It can be set to 0 or a positive integer.

Side Effects.   Any change to this property changes the size of each of these Boolean matrices that define connections to and from layers,

and changes the size each cell array of subobject structures whose size depends on the number of layers,

and also changes the size of each of the network's adjustable parameters properties.

biasConnect

This property defines which layers have biases.

It can be set to any N-by-1 matrix of Boolean values, where is the number of network layers (net.numLayers). The presence (or absence) of a bias to the ith layer is indicated by a 1 (or 0) at:

Side Effects.   Any change to this property alters the presence or absence of structures in the cell array of biases (net.biases) and, in the presence or absence of vectors in the cell array, of bias vectors (net.b).

inputConnect

This property defines which layers have weights coming from inputs.

It can be set to any matrix of Boolean values, where is the number of network layers (net.numLayers), and is the number of network inputs (net.numInputs). The presence (or absence) of a weight going to the ith layer from the jth input is indicated by a 1 (or 0) at

Side Effects.   Any change to this property will alter the presence or absence of structures in the cell array of input weight subobjects (net.inputWeights) and in the presence or absence of matrices in the cell array of input weight matrices (net.IW).

layerConnect

This property defines which layers have weights coming from other layers.

It can be set to any matrix of Boolean values, where is the number of network layers (net.numLayers). The presence (or absence) of a weight going to the ith layer from the jth layer is indicated by a 1 (or 0) at

Side Effects.   Any change to this property will alter the presence or absence of structures in the cell array of layer weight subobjects (net.layerWeights) and in the presence or absence of matrices in the cell array of layer weight matrices (net.LW).

outputConnect

This property defines which layers generate network outputs.

It can be set to any matrix of Boolean values, where is the number of network layers (net.numLayers). The presence (or absence) of a network output from the ith layer is indicated by a 1 (or 0) at

Side Effects.   Any change to this property will alter the number of network outputs (net.numOutputs) and the presence or absence of structures in the cell array of output subobjects (net.outputs).

targetConnect

This property defines which layers have associated targets.

It can be set to any matrix of Boolean values, where is the number of network layers (net.numLayers). The presence (or absence) of a target associated with the ith layer is indicated by a 1 (or 0) at

Side Effects.   Any change to this property alters the number of network targets (net.numTargets) and the presence or absence of structures in the cell array of target subobjects (net.targets).

numOutputs (read-only)

This property indicates how many outputs the network has.

It is always set to the number of 1's in the matrix of output connections.

numTargets (read-only)

This property indicates how many targets the network has.

It is always set to the number of 1's in the matrix of target connections.

numInputDelays (read-only)

This property indicates the number of time steps of past inputs that must be supplied to simulate the network.

It is always set to the maximum delay value associated any of the network's input weights.

numLayerDelays (read-only)

This property indicates the number of time steps of past layer outputs that must be supplied to simulate the network.

It is always set to the maximum delay value associated with any of the network's layer weights.


Previous page  Network Object Reference Subobject Structures Next page

© 1994-2005 The MathWorks, Inc.