how to calculate precision and recall in MATLAB?
조회 수: 26 (최근 30일)
이전 댓글 표시
how to calculate precision and recall in MATLAB?is there any builtin function for this
답변 (1개)
Salma Hassan
2018년 1월 29일
편집: Salma Hassan
2018년 1월 29일
[Xpr,Ypr,Tpr,AUCpr] =perfcurve(targets, scores, 1, 'xCrit', 'reca', 'yCrit', 'prec');
plot(Xpr,Ypr)
xlabel('Recall'); ylabel('Precision')
title(['Precision-recall curve (AUC: ' num2str(AUCpr) ')'])
****************or you can use these equations
p=tp/(tp+fp);
r= tp/(tp+fn);
F= ( 2*p*r)/(p+r);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!