Metric Functions
================

Compute metrics for assessing the performance of binary classification models.

The Confusion Matrix:

+--------------------------+-----------------------+-----------------------+
| Total Samples       (ts) | Actual Positives (ap) | Actual Negatives (an) |
+--------------------------+-----------------------+-----------------------+
| Predicted Positives (pp) | True Positives   (tp) | False Positives  (fp) |
+--------------------------+-----------------------+-----------------------+
| Predicted Negatives (pn) | False Positives  (fn) | True Negatives   (tn) |
+--------------------------+-----------------------+-----------------------+

Error
-----
.. autofunction:: mlpy.err
.. autofunction:: mlpy.errp
.. autofunction:: mlpy.errn

Accuracy
--------
.. autofunction:: mlpy.acc

Sensitivity and Specificity
---------------------------
.. autofunction:: mlpy.sens
.. autofunction:: mlpy.spec

AUC
---
.. autofunction:: mlpy.single_auc
.. autofunction:: mlpy.wmw_auc

Other
-----
.. autofunction:: mlpy.ppv
.. autofunction:: mlpy.npv
.. autofunction:: mlpy.mcc