How can I calculate the classification accuracy?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dear Sir,
I used the Adaptive Neuro-Fuzzy inference system (ANFIS) for making trajectories' classification of two different types of ships (tanker ship and fishing boat). I could get the Average testing error, but I can calculate the classification accuracy. I would like you to advise me "How can calculate the classification accuracy??"
I look forward to your response soon
Thank you very much
Mohamed Elwakdy
0 comentarios
Respuestas (3)
Image Analyst
el 7 de Feb. de 2015
7 comentarios
Greg Heath
el 26 de Mzo. de 2015
Editada: Greg Heath
el 26 de Mzo. de 2015
Artificial Neural Fuzzy Inference System
https://www.google.com/?gws_rd=ssl#q=anfis+matlab
Hope this helps.
Greg
Jinghua Li
el 3 de En. de 2017
I encountered the same problem as you,have you solved the problem? Looking forward your help!
0 comentarios
Daniel Groves
el 9 de Ag. de 2017
You could look at using the 'classperf' function in matlab. It will identify the correct classification for two groups.
see: https://uk.mathworks.com/help/bioinfo/ref/classperf.html
You can then work the percentages out yourself
An example from a logistic regression model of class performance is:
lin = stats(1,1) + stats(2,1)*EQRAT + stats(3,1)*LNSIZE + stats(4,1)*HPI + stats(5,1)*LEVERAGE + stats(6,1)*SEC + stats(7,1)*LLR + stats(8,1)*CASHDUE + stats(9,1)*GOODWILL + stats(10,1)*LIQUIDITY;
phat = (exp(lin)./(1 + exp(lin))); % Probaility that bank failed where FAIL = 1
phat(phat<0.5) = 0; % If probability less than 0.5 assume does not fail ie: FAIL = 0
phat(phat>=0.5) = 1; % If probability more than 0.5 assume does fail ie: FAIL = 1
CP = classperf(FAIL, phat);
CPtbl = CP.DiagnosticTable; % Percentage correctly predicted table
Hope this helps someone!
0 comentarios
Ver también
Categorías
Más información sobre Fuzzy Logic Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!