Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/netlab3.3/glmevfwd.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function [y, extra, invhess] = glmevfwd(net, x, t, x_test, invhess) | |
2 %GLMEVFWD Forward propagation with evidence for GLM | |
3 % | |
4 % Description | |
5 % Y = GLMEVFWD(NET, X, T, X_TEST) takes a network data structure NET | |
6 % together with the input X and target T training data and input test | |
7 % data X_TEST. It returns the normal forward propagation through the | |
8 % network Y together with a matrix EXTRA which consists of error bars | |
9 % (variance) for a regression problem or moderated outputs for a | |
10 % classification problem. | |
11 % | |
12 % The optional argument (and return value) INVHESS is the inverse of | |
13 % the network Hessian computed on the training data inputs and targets. | |
14 % Passing it in avoids recomputing it, which can be a significant | |
15 % saving for large training sets. | |
16 % | |
17 % See also | |
18 % FEVBAYES | |
19 % | |
20 | |
21 % Copyright (c) Ian T Nabney (1996-2001) | |
22 | |
23 [y, a] = glmfwd(net, x_test); | |
24 if nargin == 4 | |
25 [extra, invhess] = fevbayes(net, y, a, x, t, x_test); | |
26 else | |
27 [extra, invhess] = fevbayes(net, y, a, x, t, x_test, invhess); | |
28 end |