Filter löschen
Filter löschen

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

2 Ansichten (letzte 30 Tage)
oneclock
oneclock am 15 Nov. 2016
Bearbeitet: oneclock am 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.

Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by