Neural Network Toolbox
  Go to function:
    Search    Help Desk 
sse    Examples   See Also

Sum squared error performance function

Syntax

perf = sse(e,x,pp)

perf = sse(e,net,pp)

info = sse(code)

Description

sse is a network performance function. It measures performance according to the sum of squared errors.

sse(E,X,PP) takes from one to three arguments,

and returns the sum squared error.

sse(E,net,PP) can take an alternate argument to X,

sse(code) returns useful information for each code string:

Examples

Here a two layer feed-forward is created with a 1-element input ranging from -10 to 10, four hidden tansig neurons, and one purelin output neuron.

Here the network is given a batch of inputs P. The error is calculated by subtracting the output A from target T. Then the sum squared error is calculated.

Note that sse can be called with only one argument because the other arguments are ignored. sse supports those arguments to conform to the standard performance function argument list.

Network Use

To prepare a custom network to be trained with sse set net.performFcn to 'sse'. This will automatically set net.performParam to the empty matrix [], as sse has no performance parameters.

Calling train or adapt will result in sse being used to calculate performance.

See Also

dsse



[ Previous | Help Desk | Next ]