Skip to content

Commit

Permalink
Address PR feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinxzhao committed Jun 10, 2022
1 parent 22813df commit 4cf64e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/ludwig/utils/test_defaults.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import copy
from dataclasses import asdict

import pytest

Expand Down Expand Up @@ -93,7 +92,7 @@ def test_merge_with_defaults_early_stop(use_train, use_hyperopt_scheduler):

merged_config = merge_with_defaults(config)

expected = -1 if use_hyperopt_scheduler else asdict(TrainerConfig())["early_stop"]
expected = -1 if use_hyperopt_scheduler else TrainerConfig().early_stop
assert merged_config[TRAINER]["early_stop"] == expected


Expand Down

0 comments on commit 4cf64e2

Please sign in to comment.