#NEWLINE# def test_isotonic_regression_ties_max( ) : #NEWLINE# #INDENT# x = [ 1 , 2 , 3 , 4 , 5 , 5 ] #NEWLINE# y = [ 1 , 2 , 3 , 4 , 5 , 6 ] #NEWLINE# y_true = [ 1 , 2 , 3 , 4 , 5.5 , 5.5 ] #NEWLINE# ir = IsotonicRegression ( ) #NEWLINE# ir . fit ( x , y ) #NEWLINE# assert_array_equal ( ir . fit ( x , y ) . transform ( x ) , ir . fit_transform ( x , y ) ) #NEWLINE# assert_array_equal ( y_true , ir . fit_transform ( x , y ) )