Closed sweep-nightly[bot] closed 1 year ago
tools/end2end/eval_end2end.py
⋯
Sandbox logs for
[X] Check tools/end2end/eval_end2end.py
✗
Run `tools/end2end/eval_end2end.py` through the sandbox.
[X] Check tools/end2end/eval_end2end.py
✗
Run `tools/end2end/eval_end2end.py` through the sandbox.
Description
This PR refactors the
tools/end2end/eval_end2end.py
file to improve its modularity. Thee2e_eval
function, which was previously large and complex, has been broken down into smaller, more manageable functions. This makes the code easier to understand and maintain.Summary of Changes
read_files
.calculate_iou
.calculate_edit_distance
.match_gt_and_pred
.calculate_metrics
.e2e_eval
function to call the newly created functions.Fixes #1.
🎉 Latest improvements to Sweep:
rope
library to refactor Python! Check out Large Language Models are Bad at Refactoring Code. To have Sweep refactor your code, trysweep: Refactor <your_file>.py to be more modular
!💡 To get Sweep to edit this pull request, you can: