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

Modernize custom metrics #301

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Modernize custom metrics #301

merged 2 commits into from
Sep 30, 2024

Conversation

wsxrdv
Copy link
Contributor

@wsxrdv wsxrdv commented Sep 30, 2024

  • Add get_config and from_config methods to custom metrics so that their serialization is automatic and test this. Preventing future occurance of issue mitigated in Add forgotten custom object for MeanRank #299.

  • Modernize from TensorFlow only to Keras with multi-backend. By using keras.ops in place of tf functions.

  • Remove the parameter decimals from MaxRank since it was unused and the original use was showing the metric as an integer (ignored by the training output).

  • TODO(low priority): Move from SciPy to allow using SignificanceTest during training.

- Add get_config and from_config methods to custom metrics so that their
  serialization is automatic and test this. Preventing future occurance
  of issue mitigated in google#299.

- Modernize from TensorFlow only to Keras with multi-backend. By using
  keras.ops in place of tf functions.

- Remove the parameter `decimals` from MaxRank since it was unused and
  the original use was showing the metric as an integer (ignored by the
  training output).
@coveralls
Copy link

coveralls commented Sep 30, 2024

Pull Request Test Coverage Report for Build 11106539752

Details

  • 28 of 28 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.04%) to 80.482%

Totals Coverage Status
Change from base Build 11103271324: 0.04%
Covered Lines: 2202
Relevant Lines: 2736

💛 - Coveralls

@kralka kralka requested a review from invernizzi September 30, 2024 13:24
@kralka kralka added this pull request to the merge queue Sep 30, 2024
Merged via the queue into google:main with commit eafa28e Sep 30, 2024
14 checks passed
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.

4 participants