Skip to content

Commit

Permalink
Forgot to add black as pre-commit hook, manually running.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmills committed Sep 6, 2023
1 parent 1447298 commit 95f4bac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cnlpt/train_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ def main(
# Set seed
set_seed(training_args.seed)

if not training_args.model_selection_label is None and any(isinstance(item, int) for item in training_args.model_selection_label):
if not training_args.model_selection_label is None and any(
isinstance(item, int) for item in training_args.model_selection_label
):
logger.warning(
f"It is not recommended to use ints as model selection labels: {tuple([item for item in training_args.model_selection_label if isinstance(item, int)])}. Labels should be input in string form."
)
Expand Down

0 comments on commit 95f4bac

Please sign in to comment.