How can I make 'Feedforwardnet' behave like 'patternnet'?
조회 수: 1 (최근 30일)
이전 댓글 표시
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
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!