We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66a546b commit cc84004Copy full SHA for cc84004
lantern/epochs.py
@@ -1,5 +1,5 @@
1
def Epochs(max_epochs):
2
"""Simple generator that prints the current epoch"""
3
- for epoch in range(max_epochs):
4
- print(f"------ epoch: {epoch + 1} / {max_epochs} ------")
+ for epoch in range(1, max_epochs + 1):
+ print(f"------ epoch: {epoch} / {max_epochs} ------")
5
yield epoch
0 commit comments