Mercurial > hg > camir-aes2014
comparison toolboxes/FullBNT-1.0.7/netlab3.3/convertoldnet.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e9a9cd732c1e |
---|---|
1 function net = convertoldnet(net) | |
2 %CONVERTOLDNET Convert pre-2.3 release MLP and MDN nets to new format | |
3 % | |
4 % Description | |
5 % NET = CONVERTOLDNET(NET) takes a network NET and, if appropriate, | |
6 % converts it from pre-2.3 to the current format. The difference is | |
7 % simply that in MLPs and the MLP sub-net of MDNs the field ACTFN has | |
8 % been renamed OUTFN to make it consistent with GLM and RBF networks. | |
9 % If the network is not old-format or an MLP or MDN it is left | |
10 % unchanged. | |
11 % | |
12 % See also | |
13 % MLP, MDN | |
14 % | |
15 | |
16 % Copyright (c) Ian T Nabney (1996-2001) | |
17 | |
18 switch net.type | |
19 case 'mlp' | |
20 if (isfield(net, 'actfn')) | |
21 net.outfn = net.actfn; | |
22 net = rmfield(net, 'actfn'); | |
23 end | |
24 case 'mdn' | |
25 net.mlp = convertoldnet(net.mlp); | |
26 end |