Skip to content

Conversation

Copy link

Copilot AI commented Dec 10, 2025

The return type annotations for train() and train_model_from_config() were incomplete, declaring only 3 elements while the functions actually return 4 (including best_epoch). The docstrings were already correct.

Changes:

  • Updated train() return type: tuple[eqx.Module, list, list]tuple[eqx.Module, list, list, int]
  • Updated train_model_from_config() return type: tuple[eqx.Module, list, list]tuple[eqx.Module, list, list, int]

Both functions return (model, train_losses, val_losses, best_epoch) where best_epoch tracks the epoch with the lowest validation loss.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Update code cleanup and docstrings based on PR review feedback Fix return type annotations for train functions to include best_epoch Dec 10, 2025
Copilot AI requested a review from juehang December 10, 2025 13:37
@juehang juehang closed this Dec 10, 2025
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.

2 participants