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