def bench_isotonic_regression(Y):
 gc.collect()
 tstart = datetime.now()
 isotonic_regression(Y)
 delta = (datetime.now() - tstart)
 return total_seconds(delta)

def bench_isotonic_regression ( Y ) : gc . collect ( ) tstart = datetime . now ( ) isotonic_regression ( Y ) delta = ( datetime . now ( ) - tstart ) return total_seconds ( delta )
runs a single iteration of isotonic regression on the input data .