When comparing numerical designs, you should initialize the RNG to the same initial state before each training.
To compare the properties of FEEDFORWARDNET and PATTERNNET, compare the screen outputs of the following commands WITHOUT THE ENDING SEMICOLON
net1 = feedforwardnet
net2 = patternnet
In particular, compare the following NINE fields
transferFcn = net.layers{2}.transferFcn
yminparam = net.outputs{2}.processParams{2}.ymin
yminsetting = net.outputs{2}.processSettings{2}.ymim
yrangesetting = net.outputs{2}.processSettings{2}.yrange
performFcn = net.performFcn
plotFcns = net.plotFcns
plotParams = net.plotParams
trainFcn = net.trainFcn
trainParams = net.trainParam
Therefore SIX additional fields besides the transferFcn, performFcn and trainFcn must be considered when trying to convert FEEDFORWARDNET to PATTERNNET and vice versa.
Hope this helps.
Thank you for formally accepting my answer
Greg
Best Answer