about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/nethelp3.3/nethess.htm
blob: b918fe0a5ac18dba019af2af079bfd0b05d7155e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<html>
<head>
<title>
Netlab Reference Manual nethess
</title>
</head>
<body>
<H1> nethess
</H1>
<h2>
Purpose
</h2>
Evaluate network Hessian

<p><h2>
Synopsis
</h2>
<PRE>
h = neterr(w, net, x, t)
[h, varargout] = neterr(w, net, x, t, varargin)
</PRE>


<p><h2>
Description
</h2>

<p><CODE>h = nethess(w, net, x, t)</CODE> takes a weight vector <CODE>w</CODE> and a network
data structure <CODE>net</CODE>, together with the matrix <CODE>x</CODE> of input
vectors and the matrix <CODE>t</CODE> of target vectors, and returns the
value of the Hessian evaluated at <CODE>w</CODE>.

<p><CODE>[e, varargout] = nethess(w, net, x, t, varargin)</CODE> also returns any additional
return values from the network Hessian function, and passes additional arguments
to that function.

<p><h2>
Example
</h2>

<p>In <CODE>evidence</CODE>, this function is called once to compute the
data contribution to the Hessian
<PRE>

[h, dh] = nethess(w, net, x, t, dh);
</PRE>

and again to update the Hessian for new values of the hyper-parameters
<PRE>

h = nethess(w, net, x, t, dh);
</PRE>


<p><h2>
See Also
</h2>
<CODE><a href="neterr.htm">neterr</a></CODE>, <CODE><a href="netgrad.htm">netgrad</a></CODE>, <CODE><a href="netopt.htm">netopt</a></CODE><hr>
<b>Pages:</b>
<a href="index.htm">Index</a>
<hr>
<p>Copyright (c) Ian T Nabney (1996-9)


</body>
</html>