Neural Network Toolbox | Search  Help Desk |
sse | Examples See Also |
Sum squared error performance function
perf = sse(e,x,pp)
perf = sse(e,net,pp)
info = sse(code)
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,
E -
Matrix or cell array of error vector(s).
X -
Vector of all weight and bias values (ignored).
PP -
Performance parameters (ignored).
sse(E,net,PP)
can take an alternate argument to X
,
net
- Neural network from which X
can be obtained (ignored).
sse(code)
returns useful information for each code
string:
'deriv
' - Name of derivative function.
'pnames
' - Names of training parameters.
'pdefaults
' - Default training parameters.
net = newff([-10 10],[4 1],{'tansig','purelin'});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.
p = [-10 -5 0 5 10]; t = [0 0 1 1 1]; y = sim(net,p) e = t-y perf = sse(e)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.
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.
dsse