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

Compute metrics for assessing the performance of classification/regression 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 Negatives  (fn) | True Negatives   (tn) |
+--------------------------+-----------------------+-----------------------+

.. autofunction:: mlpy.err
.. autofunction:: mlpy.errp
.. autofunction:: mlpy.errn
.. autofunction:: mlpy.acc
.. autofunction:: mlpy.sens
.. autofunction:: mlpy.spec
.. autofunction:: mlpy.single_auc
.. autofunction:: mlpy.wmw_auc
.. autofunction:: mlpy.ppv
.. autofunction:: mlpy.npv
.. autofunction:: mlpy.mcc
.. autofunction:: mlpy.mse
.. autofunction:: mlpy.r2
