g = netgrad(w, net, x, t)
g = netgrad(w, net, x, t)
takes a weight vector w
and a network
data structure net
, together with the matrix x
of input
vectors and the matrix t
of target vectors, and returns the
gradient of the error function evaluated at w
.
mlp
, neterr
, netopt
Copyright (c) Ian T Nabney (1996-9)