what is the difference between feedforwardnet with fitnet?
17 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I would like to know the difference between the two. The definitions in matlab documents do not say exactly how they differ and when they recommend be used.
thanks
0 commentaires
Réponse acceptée
Greg Heath
le 18 Avr 2012
To see source code use the TYPE function:
type newfit
type patternnet
type feedforwardnet
FEEDFORWARDNET is general function that includes
1. FITNET for regression (MATLAB calls it curve fitting) which is supposed to be a replacement for NEWFF)
2. PATTERNNET for pattern recognition and classification ( which were previously achieved using NEWFF)
Except for the choice of training function TRAINSCG in PATTERNNET, the first 99 lines of FITNET, PATTERNNET and FEEDFORWARDNET are basically the same.
Not sure if FEEDFORWARDNET is accessible via a GUI (You should verify this)
Then:
The last 4 lines of FITNET are a call to FEEDFORWARDNET:
function net = create_network(param)
net = feedforwardnet(param.hiddenSizes,param.trainFcn);
net.plotFcns = [net.plotFcns {'plotfit'}];
end
Similarly, the last 6 lines of PATTERNNET are a call to FEEDFORWARDNET:
function net = create_network(param)
net = feedforwardnet(param.hiddenSizes,param.trainFcn);
net.layers{net.numLayers}.transferFcn = 'tansig';
% Unnecessary. It is a FEEDFORDWARDNET default
net.plotFcns = {'plotperform','plottrainstate','ploterrhist',...
'plotconfusion','plotroc'};
end
Hope this helps.
Greg
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Neural Simulation dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!