Generate feedforward neural network – MATLAB feedforwardnet

example

net = feedforwardnet(hiddenSizes,trainFcn)
returns a feedforward neural network with a hidden layer size of
hiddenSizes and training function, specified by
trainFcn.

Feedforward networks consist of a series of layers. The first layer has a connection from
the network input. Each subsequent layer has a connection from the previous layer. The final
layer produces the network’s output.

You can use feedforward networks for any kind of input to output mapping. A feedforward
network with one hidden layer and enough neurons in the hidden layers can fit any finite
input-output mapping problem.

Specialized versions of the feedforward network include fitting and pattern recognition
networks. For more information, see the fitnet and patternnet functions.

A variation on the feedforward network is the cascade forward network, which has
additional connections from the input to every layer, and from each layer to all following
layers. For more information on cascade forward networks, see the cascadeforwardnet function.