.. _f-roc: module ``ml.roc`` ================= .. inheritance-diagram:: mlstatpy.ml.roc Short summary +++++++++++++ module ``mlstatpy.ml.roc`` About :epkg:`ROC`. :githublink:`%|py|6` Classes +++++++ +------------------------------------+-------------------------------------+ | class | truncated documentation | +====================================+=====================================+ | :class:`ROC ` | Helper to draw a :epkg:`ROC` curve. | +------------------------------------+-------------------------------------+ Properties ++++++++++ +-----------------------------------------+-----------------------------------+ | property | truncated documentation | +=========================================+===================================+ | :meth:`Data ` | Returns the underlying dataframe. | +-----------------------------------------+-----------------------------------+ Methods +++++++ +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | method | truncated documentation | +=============================================================================+=====================================================================================================================+ | :py:meth:`__init__ ` | Initialisation with a dataframe and two or three columns: | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__len__ ` | usual | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__repr__ ` | Shows first elements, precision rate. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :py:meth:`__str__ ` | Shows first elements, precision rate. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`auc ` | Computes the area under the curve (:epkg:`AUC`). | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`auc_interval ` | Determines a confidence interval for the :epkg:`AUC` with bootstrap. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`compute_roc_curve ` | Computes a ROC curve with *nb* points avec nb, if *nb == -1*, there are as many as points as the data contains, ... | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`confusion ` | Computes the confusion matrix for a specific *score* or all if *score* is None. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`plot ` | Plots a :epkg:`ROC` curve. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`precision ` | Computes the precision. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`random_cloud ` | Resamples among the data. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`roc_intersect ` | The :epkg:`ROC` curve is defined by a set of points. This function interpolates those points to determine ... | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ | :meth:`roc_intersect_interval ` | Computes a confidence interval for the value returned by :meth:`roc_intersect`. | +-----------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlstatpy.ml.roc :members: :special-members: __init__ :show-inheritance: