Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose metrics to choose the best model along a training run #455

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

frostedoyster
Copy link
Collaborator

@frostedoyster frostedoyster commented Jan 27, 2025

Very important to reproduce state-of-the-art results

Contributor (creator of pull-request) checklist

  • Tests updated (for new features and bugfixes)?
  • Documentation updated (for new features)?
  • Issue referenced (for PRs that solve an issue)?

📚 Documentation preview 📚: https://metatrain--455.org.readthedocs.build/en/455/

@frostedoyster frostedoyster requested a review from Luthaf January 27, 2025 19:08
Comment on lines 114 to 116
:param best_model_metric: specifies the validation set metric to use to select the best
model. The default is ``rmse_prod``, i.e., the product of the RMSEs for each target.
Other options are ``mae_prod`` and ``loss``.
Copy link
Member

Choose a reason for hiding this comment

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

Do we define a concept of "best model" somewhere? Saying that this is the model that will end up in the cwd, named xxx.pt, …?

I would then link from here to this best model definition. Otherwise I would add something here, like "i.e. the model you can find at xxx.pt at the end of a training run"

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This can change for different architectures, so I will add it here

tests/utils/test_metrics.py Outdated Show resolved Hide resolved
@frostedoyster frostedoyster requested a review from Luthaf January 28, 2025 17:11
@frostedoyster frostedoyster merged commit d358315 into main Jan 29, 2025
13 checks passed
@frostedoyster frostedoyster deleted the best-model-metrics branch January 29, 2025 12:13
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