Neural Network Toolbox |
Dot product weight derivative function
Syntax
Description
ddotprod
is a weight derivative function.
ddotprod('p',W,P,Z)
takes three arguments,
and returns the S
x R
derivative dZ/dP
.
ddotprod('w',W,P,Z)
returns the R
x Q
derivative dZ/dW.
Examples
Here we define a weight W
and input P
for an input with three elements and a layer with two neurons.
Here we calculate the weighted input with dotprod
, then calculate each derivative with ddotprod
.
Algorithm
The derivative of a product of two elements with respect to one element is the other element.
See Also
concur | dhardlim |
© 1994-2005 The MathWorks, Inc.