def recall(y_true, y_pred):
    """
    Calculates the recall.

    Recall (also known as sensitivity or true positive rate) represents the