How can I make 'Feedforwardnet' behave like 'patternnet'?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I don't know how to make 'Feedforwardnet' behave like 'patternnet'. This is my codes.
[inputs,targets] = cancer_dataset;
% Create a Pattern Recognition Network
hiddenLayerSize = 10;
net = feedforwardnet(hiddenLayerSize);
% Set up Division of Data for Training, Validation, Testing
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
% Train the Network
[net,tr] = train(net,inputs,targets);
% Test the Network
outputs = net(inputs);
This is the example of the patternnet without using feedforwardnet. I see the two network's output is different: patternnet produce the output of 0~1 data.
So, I want to add code so that 'feedforwardnet' behaves like 'patternnet' without using transferfunction'mapminmax'.
I think that the difference between 'feedforwardnet' and 'patternnet' is the added output at the network: Sigmoid hidden and softmax, is this correct? If this is correct, I want to add code to 'feedforwardnet'.
Thanks.
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Sequence and Numeric Feature Data Workflows dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!