필터 지우기
필터 지우기

Testing Neural Networks

조회 수: 17 (최근 30일)
rakesh kumar
rakesh kumar 2011년 7월 14일
댓글: Huy Le Van 2020년 5월 17일
Hi, I am new to Neural Networks.I have created a small AND logical gate using Neural Network in Matlab 7. I have trained the Network, but i don't know how to test my network,any help in this regard would be of great help. Thanks

답변 (4개)

V Chauhan
V Chauhan 2013년 8월 11일
편집: V Chauhan 2013년 8월 11일
Hi. you can use GUI for training. Your input should be of form 2 X n. where each column is pair of 0 and 1. Your output should be 1 x n where each value is corresponding output related to each input column.Use GUI to train it and at the end save your file with some name and save results ( a button in GUI at the end). Now go to command prompt and create new variable with two rows and 1 column to test. For example testres=[0;1] and type on command prompt nnout=net(testres). Where nnout is your networks output for testres. It will give you output close to zero for AND gate. You can try different combinations with testres such as testres=[0 0 1 1; 1 1 1 1] and test network. It will give 4 outputs for 4 inputs. Last two will be near 1.

Chirag Gupta
Chirag Gupta 2011년 7월 14일
use the
outputs = sim(net,testinputs)
where net is the trained neural net
  댓글 수: 6
Kushan Ranga
Kushan Ranga 2015년 9월 3일
i have designed the neural network and the gui.I tried this also.but it dosen't show anything.please help....
Huy Le Van
Huy Le Van 2020년 5월 17일
sorry
Chirag Gupta,
you work test training neuron by sim.
my opinion, You false.

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


sw
sw 2011년 7월 18일
Does testinputs have to have the same number of rows as what net was traied with?
Otherwise, the following error results:
??? Error using ==> network.sim at 121 Input 1 size does not match net.inputs{1}.size.
  댓글 수: 2
rakesh kumar
rakesh kumar 2011년 7월 19일
train is done.but the problem is i don't know how to test the network which i have trained using only NN toolkit.I don't want to use any codes,want to do in NN toolkit.
Chirag Gupta
Chirag Gupta 2011년 7월 19일
Whats the exact MATLAB version you are using? With MATLAB R2011a, you can use nnstart to get started, where you can train and test your networks!
Which tool are you using? nntrain or nntool? Typically after training the network you can export your network to the workspace and test it as shown above

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


Justin
Justin 2011년 9월 8일
Does anyone know if there is a way to use nnstart if you're using R2010a? I have MATLAB 7.10.0 and it seems that nnstart won't work and I'm having trouble building a time series network.
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 9월 8일
I suggest you create a new Question for this, Justin.

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

카테고리

Help CenterFile 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!

Translated by