about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/nethelp3.3/demhmc2.htm
blob: b5657cbe7277490decde85eb48bec4aca7be6e8d (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
<html>
<head>
<title>
Netlab Reference Manual demhmc2
</title>
</head>
<body>
<H1> demhmc2
</H1>
<h2>
Purpose
</h2>
Demonstrate Bayesian regression with Hybrid Monte Carlo sampling.

<p><h2>
Synopsis
</h2>
<PRE>
demhmc2</PRE>


<p><h2>
Description
</h2>
The problem consists of one input variable <CODE>x</CODE> and one target variable 
<CODE>t</CODE> with data generated by sampling <CODE>x</CODE> at equal intervals and then 
generating target data by computing <CODE>sin(2*pi*x)</CODE> and adding Gaussian 
noise. The model is a 2-layer network with linear outputs, and the hybrid Monte
Carlo algorithm (without persistence) is used to sample from the posterior
distribution of the weights.  The graph shows the underlying function,
100 samples from the function given by the posterior distribution of the
weights, and the average prediction (weighted by the posterior probabilities).

<p><h2>
See Also
</h2>
<CODE><a href="demhmc3.htm">demhmc3</a></CODE>, <CODE><a href="hmc.htm">hmc</a></CODE>, <CODE><a href="mlp.htm">mlp</a></CODE>, <CODE><a href="mlperr.htm">mlperr</a></CODE>, <CODE><a href="mlpgrad.htm">mlpgrad</a></CODE><hr>
<b>Pages:</b>
<a href="index.htm">Index</a>
<hr>
<p>Copyright (c) Ian T Nabney (1996-9)


</body>
</html>