Skip to content

Commit

Permalink
Number of correct defaults to None, but can handle zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Waino committed Oct 7, 2024
1 parent 4f6620c commit 7229141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mammoth/utils/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Statistics(object):
* elapsed time
"""

def __init__(self, loss=0, n_words=0, n_correct=0):
def __init__(self, loss=0, n_words=0, n_correct=None):
self.loss = loss
self.n_words = n_words
self.n_correct = n_correct
Expand Down

0 comments on commit 7229141

Please sign in to comment.