def geometric_mean_score_2(y_true, y_pred):
    """
    Calculates the geometric mean score.

    The alternative definition of G-mean measure. For binary classification G-mean is denoted as the squared root of the product of the recall and precision.