annotate toolboxes/FullBNT-1.0.7/nethelp3.3/mlppak.htm @ 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
rev   line source
Daniel@0 1 <html>
Daniel@0 2 <head>
Daniel@0 3 <title>
Daniel@0 4 Netlab Reference Manual mlppak
Daniel@0 5 </title>
Daniel@0 6 </head>
Daniel@0 7 <body>
Daniel@0 8 <H1> mlppak
Daniel@0 9 </H1>
Daniel@0 10 <h2>
Daniel@0 11 Purpose
Daniel@0 12 </h2>
Daniel@0 13 Combines weights and biases into one weights vector.
Daniel@0 14
Daniel@0 15 <p><h2>
Daniel@0 16 Synopsis
Daniel@0 17 </h2>
Daniel@0 18 <PRE>
Daniel@0 19 w = mlppak(net)
Daniel@0 20 </PRE>
Daniel@0 21
Daniel@0 22
Daniel@0 23 <p><h2>
Daniel@0 24 Description
Daniel@0 25 </h2>
Daniel@0 26 <CODE>w = mlppak(net)</CODE> takes a network data structure <CODE>net</CODE> and
Daniel@0 27 combines the component weight matrices bias vectors into a single row
Daniel@0 28 vector <CODE>w</CODE>. The facility to switch between these two
Daniel@0 29 representations for the network parameters is useful, for example, in
Daniel@0 30 training a network by error function minimization, since a single
Daniel@0 31 vector of parameters can be handled by general-purpose optimization
Daniel@0 32 routines.
Daniel@0 33
Daniel@0 34 <p>The ordering of the paramters in <CODE>w</CODE> is defined by
Daniel@0 35 <PRE>
Daniel@0 36
Daniel@0 37 w = [net.w1(:)', net.b1, net.w2(:)', net.b2];
Daniel@0 38 </PRE>
Daniel@0 39
Daniel@0 40 where <CODE>w1</CODE> is the first-layer weight matrix, <CODE>b1</CODE> is the
Daniel@0 41 first-layer bias vector, <CODE>w2</CODE> is the second-layer weight matrix,
Daniel@0 42 and <CODE>b2</CODE> is the second-layer bias vector.
Daniel@0 43
Daniel@0 44 <p><h2>
Daniel@0 45 See Also
Daniel@0 46 </h2>
Daniel@0 47 <CODE><a href="mlp.htm">mlp</a></CODE>, <CODE><a href="mlpunpak.htm">mlpunpak</a></CODE>, <CODE><a href="mlpfwd.htm">mlpfwd</a></CODE>, <CODE><a href="mlperr.htm">mlperr</a></CODE>, <CODE><a href="mlpbkp.htm">mlpbkp</a></CODE>, <CODE><a href="mlpgrad.htm">mlpgrad</a></CODE><hr>
Daniel@0 48 <b>Pages:</b>
Daniel@0 49 <a href="index.htm">Index</a>
Daniel@0 50 <hr>
Daniel@0 51 <p>Copyright (c) Ian T Nabney (1996-9)
Daniel@0 52
Daniel@0 53
Daniel@0 54 </body>
Daniel@0 55 </html>