Skip to content

Fix epoch calculation#698

Merged
yutong-xiang-97 merged 1 commit intomainfrom
log-epoch-start-from-zero
Apr 13, 2026
Merged

Fix epoch calculation#698
yutong-xiang-97 merged 1 commit intomainfrom
log-epoch-start-from-zero

Conversation

@yutong-xiang-97
Copy link
Copy Markdown
Contributor

What has changed and why?

Update the epoch calculation to log the completed number of epochs, i.e. starting from 0.

How has it been tested?

  • N/A

Did you update CHANGELOG.md?

  • Yes
  • Not needed (internal change)

Did you update the documentation?

  • Yes
  • Not needed (internal change without effects for user)

Copilot AI review requested due to automatic review settings April 13, 2026 16:19
@chatgpt-codex-connector
Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

@yutong-xiang-97
Copy link
Copy Markdown
Contributor Author

/review

@yutong-xiang-97 yutong-xiang-97 enabled auto-merge (squash) April 13, 2026 16:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adjusts training epoch logging to reflect the number of completed epochs (0-based), aligning console/logger output with the intended epoch semantics.

Changes:

  • Update get_training_epoch() to compute completed epochs via integer division.
  • Update the changelog entry describing epoch logging semantics.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/lightly_train/_commands/train_task_helpers.py Changes epoch calculation used for logging from 1-based “current epoch” to 0-based “completed epochs”.
CHANGELOG.md Updates unreleased entry to describe the new epoch logging semantics.

Comment thread src/lightly_train/_commands/train_task_helpers.py
Comment thread src/lightly_train/_commands/train_task_helpers.py
Comment thread CHANGELOG.md
Comment thread CHANGELOG.md
@yutong-xiang-97 yutong-xiang-97 merged commit 5bcbbd0 into main Apr 13, 2026
20 checks passed
@yutong-xiang-97 yutong-xiang-97 deleted the log-epoch-start-from-zero branch April 13, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants