wolffd@0: function w = mdnpak(net) wolffd@0: %MDNPAK Combines weights and biases into one weights vector. wolffd@0: % wolffd@0: % Description wolffd@0: % W = MDNPAK(NET) takes a mixture density network data structure NET wolffd@0: % and combines the network weights into a single row vector W. wolffd@0: % wolffd@0: % See also wolffd@0: % MDN, MDNUNPAK, MDNFWD, MDNERR, MDNGRAD wolffd@0: % wolffd@0: wolffd@0: % Copyright (c) Ian T Nabney (1996-2001) wolffd@0: % David J Evans (1998) wolffd@0: wolffd@0: errstring = consist(net, 'mdn'); wolffd@0: if ~errstring wolffd@0: error(errstring); wolffd@0: end wolffd@0: w = mlppak(net.mlp);