| Neural Network Toolbox | ![]() |
Mean squared error with regularization or performance derivative function
Syntax
dPerf_dE = dmsereg('e',E,X,perf,PP)
dPerf_dX = dmsereg('x',E,X,perf,PP)
Description
dmsereg is the derivative function for msereg.
dmsereg('d',E,X,perf,PP) takes these arguments,
E -- Matrix or cell array of error vector(s)
X -- Vector of all weight and bias values
where PP defines one performance parameters,
and returns the derivative dPerf/dE.
dmsereg('x',E,X,perf) returns the derivative dPerf/dX.
mse has only one performance parameter.
Examples
Here we define an error E and X for a network with one 3-element output and six weight and bias values.
Here the ratio performance parameter is defined so that squared errors are 5 times as important as squared weight and bias values.
Here we calculate the network's performance, and derivatives of performance.
See Also
| dmse | dnetprod | ![]() |
© 1994-2005 The MathWorks, Inc.