How to use a trained neural network in matlab??

조회 수: 2 (최근 30일)
saif ikbal
saif ikbal 2017년 4월 22일
댓글: Hamza Ashraf 2020년 8월 3일
I am not using neural net toolbox rather I am using my own code to build a neural net model. Now after saving my neural net result, I want to test it with new data set. How to do this???

답변 (2개)

Ankit Bhardwaj
Ankit Bhardwaj 2017년 4월 24일
Without knowing your custom neural network model, it is not possible for us to understand how it can be used to train new data set. However, you can basic workflow from the following example which shows how to classify new image data by fine tuning the existing, pretrained neural network.
https://www.mathworks.com/help/releases/R2017a/nnet/examples/transfer-learning-and-fine-tuning-of-convolutional-neural-networks.html
Since this is an example from Neural Network Toolbox, you need to have Neural Network Toolbox license to use some of the functions, but it can be used to learn some of the existing workflows.
  댓글 수: 1
Hamza Ashraf
Hamza Ashraf 2020년 8월 3일
hi i have tarined a network to detect specific sound now how can i use it. i want to provide audio coming from mike to network. can you tell me how to do that

댓글을 달려면 로그인하십시오.


Greg Heath
Greg Heath 2017년 4월 25일
If you have saved the net, try
ynew = net( xnew );
enew = tnew - ynew;
NMSEnew = mse( enew )/ mean( var( tnew',1 ))
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 1
Hamza Ashraf
Hamza Ashraf 2020년 8월 3일
hi i have tarined a network to detect specific sound now how can i use it. i want to provide audio coming from mike to network. can you tell me how to do that

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by