MATLAB Answers

0

Neural network tool application

Gaeul Lee 님이 질문을 제출함. 20 May 2015
최근 활동 Umakant 님이 편집함. 20 May 2015
When I use Neural network tool, I don't know how can I apply trained model. After I made a network file, how can I apply the model to new input data?

  댓글 수: 0

로그인 to comment.

태그

답변 수: 1

Umakant 님의 답변 20 May 2015
Umakant 님이 편집함. 20 May 2015
 채택된 답변

Hi Gaeul,
As I understand you would like to test the Neural Network for new inputs(testing data). You can use the 'net' function to test the network. Please take a look at the following code snippet:
% Create a Pattern Recognition Network
hiddenLayerSize = 10;
net = patternnet(hiddenLayerSize);
% Train the Network
[net,tr] = train(net,inputs,targets);
% Test the Network
outputs = net(inputs);
errors = gsubtract(targets,outputs);
performance = perform(net,targets,outputs)
The example given above assumes a Pattern Classification Neural Network in use.If your application involves fitting data with NN please refer to the following link:
Refer to the following link for more information on Neural Network design steps:
Thanks,
Umakant

  댓글 수: 0

로그인 to comment.



Translated by