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