From 8070dc963753142bb86c4ed698d91fd623ed28e7 Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Thu, 28 Sep 2017 15:04:40 -0500 Subject: BNW using Octave instead of Matlab. This version of BNW should perform the same as the original version. The only difference is that it uses Octave instead of Matlab when running BayesNet Toolbox during parameter learning. I am calling this BNW_1.02. It can be accessed at: compbio.uthsc.edu/BNW_1.02 --- sourcecodes/bnt-master/nethelp3.3/glmhess.htm | 74 +++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 sourcecodes/bnt-master/nethelp3.3/glmhess.htm (limited to 'sourcecodes/bnt-master/nethelp3.3/glmhess.htm') diff --git a/sourcecodes/bnt-master/nethelp3.3/glmhess.htm b/sourcecodes/bnt-master/nethelp3.3/glmhess.htm new file mode 100644 index 00000000..481e3220 --- /dev/null +++ b/sourcecodes/bnt-master/nethelp3.3/glmhess.htm @@ -0,0 +1,74 @@ + +
++h = glmhess(net, x, t) +[h, hdata] = glmhess(net, x, t) +h = glmhess(net, x, t, hdata) ++ + +
h = glmhess(net, x, t) takes a GLM network data structure net,
+a matrix x of input values, and a matrix t of target
+values and returns the full Hessian matrix h corresponding to
+the second derivatives of the negative log posterior distribution,
+evaluated for the current weight and bias values as defined by
+net. Note that the target data is not required in the calculation,
+but is included to make the interface uniform with nethess. For
+linear and logistic outputs, the computation is very simple and is
+done (in effect) in one line in glmtrain.
+
+[h, hdata] = glmhess(net, x, t) returns both the Hessian matrix
+h and the contribution hdata arising from the data dependent
+term in the Hessian.
+
+
h = glmhess(net, x, t, hdata) takes a network data structure
+net, a matrix x of input values, and a matrix t of
+target values, together with the contribution hdata arising from
+the data dependent term in the Hessian, and returns the full Hessian
+matrix h corresponding to the second derivatives of the negative
+log posterior distribution. This version saves computation time if
+hdata has already been evaluated for the current weight and bias
+values.
+
+
glmtrain to take a Newton step for
+softmax outputs.
++ +Hessian = glmhess(net, x, t); +deltaw = -gradient*pinv(Hessian); ++ + +
glm, glmtrain, hesschek, nethessCopyright (c) Ian T Nabney (1996-9) + + + + \ No newline at end of file -- cgit 1.4.1