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

Log optimizer and training metrics to CSV file #376

Merged
merged 8 commits into from
Sep 20, 2024
Merged

Log optimizer and training metrics to CSV file #376

merged 8 commits into from
Sep 20, 2024

Conversation

Lilferrit
Copy link
Contributor

Implemented logging of optimizer (e.g. learning rate and weight decay) and training (e.g. validation and train loss) to a CSV file using lightning.pytorch.loggers.CSVLogger. Also added an additional callback to log optimizer metrics.

@Lilferrit Lilferrit linked an issue Sep 16, 2024 that may be closed by this pull request
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

Attention: Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.36%. Comparing base (aefa73c) to head (34fca7d).

Files with missing lines Patch % Lines
casanovo/denovo/model_runner.py 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #376      +/-   ##
==========================================
- Coverage   94.40%   94.36%   -0.05%     
==========================================
  Files          12       12              
  Lines        1073     1083      +10     
==========================================
+ Hits         1013     1022       +9     
- Misses         60       61       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
casanovo/denovo/model_runner.py Outdated Show resolved Hide resolved
@bittremieux
Copy link
Collaborator

bittremieux commented Sep 20, 2024

Looks good. Please update the CHANGELOG before merging.

We might have forgotten to update the CHANGELOG for #374, so can you add that as well?

@Lilferrit Lilferrit merged commit 34c456d into dev Sep 20, 2024
@Lilferrit Lilferrit deleted the log-metrics branch September 20, 2024 21:32
Lilferrit added a commit that referenced this pull request Sep 25, 2024
* eval metrics bug fix

* better eval metrics bug fix

* eval metrics bug fix

* better eval metrics bug fix

* eval stats unit test, circular import fix

* log metrics unit test

* removed unused import

* log metrics refactor, additional log metrics test case

* aa_match_batch hanles none, additional skipped spectra test cases

* Log optimizer and training metrics to CSV file (#376)

* csv logger

* optimizer metrics logger

* metrics logging unit tests

* config item retrieval, additional requested changes

* Generate new screengrabs with rich-codex

* changelog update

* Generate new screengrabs with rich-codex

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* aa_match_batch and aa_match handle None

* top_match eval metrics warning

* removed unused import

* log metrics refactor, additional log metrics test case

* aa_match_batch hanles none, additional skipped spectra test cases

* aa_match_batch and aa_match handle None

* top_match eval metrics warning

* eval metrics bug fix

* better eval metrics bug fix

* eval stats unit test, circular import fix

* log metrics unit test

* removed unused import

* log metrics refactor, additional log metrics test case

* aa_match_batch hanles none, additional skipped spectra test cases

* aa_match_batch and aa_match handle None

* top_match eval metrics warning

* removed unused import

* log metrics refactor, additional log metrics test case

* metrics file logging bug fix

* aa_match test cases, minor aa_match refactor

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

Track training and validation loss
2 participants