def check_rows(prediction_rows, test_rows):
    for row in prediction_rows:
        check_row = next(test_rows)
        assert len(check_row) == len (row)
        for index in range(len(row)):
            dot = row[index].find(".")
            if dot > 0:
                try:
                    decs = min(len(row[index]), len(check_row[index])) - dot - 1
                    row[index] = round(float(row[index]), decs)
                    check_row[index] = round(float(check_row[index]), decs)
                except __HOLE__:
                    pass
            assert check_row[index] == row[index], ("Got: %s/ Expected: %s" % (row, check_row))

#@step(r'the batch prediction file is like "(.*)"')
dataset/ETHPy150Open bigmlcom/python/bigml/tests/create_batch_prediction_steps.py/check_rows