Effacer les filtres
Effacer les filtres

How can I make 'Feedforwardnet' behave like 'patternnet'?

2 vues (au cours des 30 derniers jours)
oneclock
oneclock le 15 Nov 2016
Modifié(e) : oneclock le 15 Nov 2016
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.

Réponses (0)

Catégories

En savoir plus sur Deep Learning Toolbox 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!

Translated by