| def check_perf_csv(filename, threshold): |
| Basic performance checking. |
| df = pd.read_csv(filename) |
| for _, row in df.iterrows(): |
| failed.append(model_name) |
| print(f"{model_name:34} {speedup}") |
| Error {len(failed)} models performance regressed |
| if __name__ == "__main__": |
| parser = argparse.ArgumentParser() |
| parser.add_argument("--file", "-f", type=str, help="csv file name") |
| "--threshold", "-t", type=float, help="threshold speedup value to check against" |
| args = parser.parse_args() |
| check_perf_csv(args.file, args.threshold) |