Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
garymm committed Feb 12, 2025
1 parent e6b5888 commit ed698f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,9 @@ def _should_consider(tag: str, metric_name: str, tfefile: str) -> bool:
else os.path.dirname(tfefile)
)
basedir_name = os.path.dirname(tfefile)
return (tag.startswith(metric_name.split("/")[-1]) and
basedir_name.endswith(tfefile_parent_dir))
return tag.startswith(metric_name.split("/")[-1]) and basedir_name.endswith(
tfefile_parent_dir
)


class TFEventFileParser:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,8 @@
import unittest

import tensorboardX

import utils


METRIC_DIR_NAMES = ("train", "test")
METRIC_NAMES = ("accuracy", "loss")
QUALIFIED_METRIC_NAMES = tuple(
Expand Down

0 comments on commit ed698f1

Please sign in to comment.