True Positives, False Positives, True Negatives, False Negatives from 2 Matrices
- This simple function takes in 2 matrices of equal size populated with 1's and 0's and returns the number of True Positives, False Positives, True Negatives, False Negatives in order for precision and recall calculation
- 1st matrix is the true matrix
- 2nd matrix is the one populated from an algorithm used
- Returns error metrics based on a binary classification
Cite As
Jason Joseph Rebello (2024). True Positives, False Positives, True Negatives, False Negatives from 2 Matrices (https://www.mathworks.com/matlabcentral/fileexchange/47364-true-positives-false-positives-true-negatives-false-negatives-from-2-matrices), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Mathematics > Sparse Matrices >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Calculate Error/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |