Mercurial > hg > camir-ismir2012
view toolboxes/FullBNT-1.0.7/netlab3.3/convertoldnet.m @ 0:cc4b1211e677 tip
initial commit to HG from
Changeset:
646 (e263d8a21543) added further path and more save "camirversion.m"
author | Daniel Wolff |
---|---|
date | Fri, 19 Aug 2016 13:07:06 +0200 |
parents | |
children |
line wrap: on
line source
function net = convertoldnet(net) %CONVERTOLDNET Convert pre-2.3 release MLP and MDN nets to new format % % Description % NET = CONVERTOLDNET(NET) takes a network NET and, if appropriate, % converts it from pre-2.3 to the current format. The difference is % simply that in MLPs and the MLP sub-net of MDNs the field ACTFN has % been renamed OUTFN to make it consistent with GLM and RBF networks. % If the network is not old-format or an MLP or MDN it is left % unchanged. % % See also % MLP, MDN % % Copyright (c) Ian T Nabney (1996-2001) switch net.type case 'mlp' if (isfield(net, 'actfn')) net.outfn = net.actfn; net = rmfield(net, 'actfn'); end case 'mdn' net.mlp = convertoldnet(net.mlp); end