How to calculate the accuracy in neural network?

조회 수: 3 (최근 30일)
Turki
Turki 2013년 11월 16일
댓글: noo no 2015년 10월 19일
Hi all,
I am new in this field. I have a date set that has 5 features, 680 records and one column as a label either 1 or 0. I took 20 record as a testing set and the other as a training set. Then I made the label column as a target and the other as inputs. I created the net with (patternnet) function. Then I trained the data. After that I test the network with the testing set. When I compare the outputs of the test with the original target of the testing set, it's almost similar. That means when I calculate the accuracy by using (True Positive + True Negative) / The number of the testing data, I will get a high accuracy.
So is that correct? ( I don't know if I could put the code here or not!!)
I am using Matlab. Thanks in advance.

채택된 답변

Greg Heath
Greg Heath 2013년 11월 17일
That works. However it is generally more useful to obtain the training, validation and testing error of each class.
If you search for some of my code in both NEWSGROUP and ANSWERS, it may be helpful
greg patternnet
Hope this helps.
Thank you for formally accepting my answer
Greg
  댓글 수: 2
Turki
Turki 2013년 11월 17일
Thank you for replay.
I'm wondering because the accuracy is so high. it usually comes 96,97,98. That is why I am not sure about the code.
noo no
noo no 2015년 10월 19일
please I need this code? my mail (<mailto:wesamyoussef85@yahoo.com

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

추가 답변 (1개)

noo no
noo no 2015년 10월 19일
please I need this code? my mail (<mailto:wesamyoussef85@yahoo.com wesamyoussef85@yahoo.com>)

카테고리

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