comparison toolboxes/FullBNT-1.0.7/netlab3.3/netderiv.m @ 0:e9a9cd732c1e tip

first hg version after svn
author wolffd
date Tue, 10 Feb 2015 15:05:51 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:e9a9cd732c1e
1 function g = netderiv(w, net, x)
2 %NETDERIV Evaluate derivatives of network outputs by weights generically.
3 %
4 % Description
5 %
6 % G = NETDERIV(W, NET, X) takes a weight vector W and a network data
7 % structure NET, together with the matrix X of input vectors, and
8 % returns the gradient of the outputs with respect to the weights
9 % evaluated at W.
10 %
11 % See also
12 % NETEVFWD, NETOPT
13 %
14
15 % Copyright (c) Ian T Nabney (1996-2001)
16
17 fstr = [net.type, 'deriv'];
18 net = netunpak(net, w);
19 g = feval(fstr, net, x);