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

initial commit to HG from Changeset: 646 (e263d8a21543) added further path and more save "camirversion.m"
author Daniel Wolff
date Fri, 19 Aug 2016 13:07:06 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:cc4b1211e677
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);