def test_iba_geo_mean_binary():
 (y_true, y_pred, _) = make_prediction(binary=True)
 iba_gmean = make_index_balanced_accuracy(alpha=0.5, squared=True)(geometric_mean_score)
 iba = iba_gmean(y_true, y_pred)
 assert_allclose(iba, 0.5948, rtol=R_TOL)

def test_iba_geo_mean_binary ( ) : ( y_true , y_pred , _ ) = make_prediction ( binary = True ) iba_gmean = make_index_balanced_accuracy ( alpha = 0.5 , squared = True ) ( geometric_mean_score ) iba = iba_gmean ( y_true , y_pred ) assert_allclose ( iba , 0.5948 , rtol = R_TOL )
test to test the iba using the geometric mean .