#NEWLINE# def test_isotonic_regression_reversed( ) : #NEWLINE# #INDENT# y = np . array ( [ 10 , 9 , 10 , 7 , 6 , 6.1 , 5 ] ) #NEWLINE# y_ = IsotonicRegression ( increasing = False ) . fit_transform ( np . arange ( len ( y ) ) , y ) #NEWLINE# assert_array_equal ( np . ones ( y_ [ : ( - 1 ) ] . shape ) , ( ( y [ : ( - 1 ) ] - y_ [ 1 : ] ) >= 0 ) )