Skip to content

Commit

Permalink
update test_checkpoint score function param name
Browse files Browse the repository at this point in the history
  • Loading branch information
alykhantejani authored Feb 28, 2018
1 parent d1e7824 commit 54a1507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ignite/handlers/test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_last_k(dirname):
def test_best_k(dirname):
scores = iter([1.0, -2., 3.0, -4.0])

def score_function(engine):
def score_function(state):
return next(scores)

h = ModelCheckpoint(dirname, _PREFIX, create_dir=False,
Expand Down

0 comments on commit 54a1507

Please sign in to comment.