def accuracy(Ntp, Ntn, Nfp, Nfn, eps=numpy.spacing(1)):
    """Accuracy

    Parameters
    ----------
    Ntp : int >= 0
        Number of true positives.

    Ntn : int >= 0
        Number of true negatives.

    Nfp : int >= 0
        Number of false positives.

    Nfn : int >= 0
        Number of false negatives.

    eps : float
        eps.
        Default value numpy.spacing(1)

    Returns
    -------
    acc: float
        Accuracy

    """

    return float((Ntp + Ntn) / (Ntp + Ntn + Nfn + Nfp + eps))
Accuracy

    Parameters
    ----------
    Ntp : int >= 0
        Number of true positives.

    Ntn : int >= 0
        Number of true negatives.

    Nfp : int >= 0
        Number of false positives.

    Nfn : int >= 0
        Number of false negatives.

    eps : float
        eps.
        Default value numpy.spacing(1)

    Returns
    -------
    acc: float
        Accuracy