Skip to content

Instantly share code, notes, and snippets.

@bepuca
Last active December 9, 2024 11:49
Show Gist options
  • Save bepuca/fdaac6acd9a1e0085726a33ee0341250 to your computer and use it in GitHub Desktop.
Save bepuca/fdaac6acd9a1e0085726a33ee0341250 to your computer and use it in GitHub Desktop.
object detection error analysis article - Interactive version of the article as a Jupyter notebook
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Jinsol-Lee
Copy link

Hi Bernat, thanks for sharing this code. I get this error when I try to run the notebook with all the modules imported correctly. Here is a pytest summary:

========================= short test summary info =========================
FAILED test_obj_det_error.py::test_calculate_error_impact - pandas.errors.UndefinedVariableError: name 'ErrorType' is not defined
FAILED test_obj_det_error.py::test_fix_cls_error - pandas.errors.UndefinedVariableError: name 'ErrorType' is not defined
FAILED test_obj_det_error.py::test_fix_loc_error - pandas.errors.UndefinedVariableError: name 'ErrorType' is not defined
FAILED test_obj_det_error.py::test_fix_by_removing_targets - pandas.errors.Undefined

ErrorType is imported, do you have any suggestion as to why this error may occur?

@Jinsol-Lee
Copy link

I actually found what was causing the issue: pandas package changed such that the class variables in query strings do not work. I had to create separate variables to point to each ErrorType class variable. [Link to related issue discussed on stackoverflow]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment