def test_geometric_mean_support_binary():
 (y_true, y_pred, _) = make_prediction(binary=True)
 geo_mean = geometric_mean_score(y_true, y_pred)
 assert_allclose(geo_mean, 0.77, rtol=R_TOL)

def test_geometric_mean_support_binary ( ) : ( y_true , y_pred , _ ) = make_prediction ( binary = True ) geo_mean = geometric_mean_score ( y_true , y_pred ) assert_allclose ( geo_mean , 0.77 , rtol = R_TOL )
test the geometric mean for binary classification task .