wolffd@0: function w = glmpak(net) wolffd@0: %GLMPAK Combines weights and biases into one weights vector. wolffd@0: % wolffd@0: % Description wolffd@0: % W = GLMPAK(NET) takes a network data structure NET and combines them wolffd@0: % into a single row vector W. wolffd@0: % wolffd@0: % See also wolffd@0: % GLM, GLMUNPAK, GLMFWD, GLMERR, GLMGRAD wolffd@0: % wolffd@0: wolffd@0: % Copyright (c) Ian T Nabney (1996-2001) wolffd@0: wolffd@0: errstring = consist(net, 'glm'); wolffd@0: if ~errstring wolffd@0: error(errstring); wolffd@0: end wolffd@0: wolffd@0: w = [net.w1(:)', net.b1]; wolffd@0: