Skip to content

Commit

Permalink
align with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
eunwoosh committed Jan 2, 2024
1 parent 71810b6 commit f203986
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class EvalResult:
Each metric can be set or gotten by both dict-like(ins["metric"]) or class-like(ins.metric) way.
"add" (only with a class having same metrics) and "true devide" are supported.
"""

def __getitem__(self, key):
"""Support dict-like way to get attribute."""
return getattr(self, key)
Expand Down

0 comments on commit f203986

Please sign in to comment.