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

Remove the deprecated decorator of KerasPruningCallback #93

Merged

Conversation

nzw0301
Copy link
Member

@nzw0301 nzw0301 commented Feb 22, 2024

Motivation

See #91. Technically, the integration tests do not use Keras 3.0 yet due to tensorflow; even though Keras 3.0 has been stable, the latest stable tensorflow 2.15.0 uses Keras 2.* and tensorflow 2.16, which is not released yet, will use Keras 3.0 by default. However I confirmed that the tests for the callback with Keras 3.0 and pytorch/jax run without errors.

Description of the changes

  • Remove the decorator.
  • Use Input class rather than the deprecated way.

Copy link

codecov bot commented Feb 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.65%. Comparing base (89b3058) to head (2ad1839).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #93      +/-   ##
==========================================
+ Coverage   72.61%   72.65%   +0.03%     
==========================================
  Files          39       39              
  Lines        3334     3331       -3     
==========================================
- Hits         2421     2420       -1     
+ Misses        913      911       -2     

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

@nzw0301 nzw0301 force-pushed the remove-keras-callback-deprecation branch from e1810ad to 5449518 Compare February 22, 2024 11:14
@nzw0301 nzw0301 force-pushed the remove-keras-callback-deprecation branch from 5449518 to 2ad1839 Compare February 22, 2024 11:47
Copy link

This pull request has not seen any recent activity.

@github-actions github-actions bot added stale Exempt from stale bot labeling. and removed stale Exempt from stale bot labeling. labels Feb 29, 2024
@HideakiImamura HideakiImamura self-assigned this Mar 7, 2024
@HideakiImamura
Copy link
Member

I'll review this PR in a few days.

Copy link
Member

@HideakiImamura HideakiImamura left a comment

Choose a reason for hiding this comment

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

LGTM.

@HideakiImamura HideakiImamura merged commit a097e43 into optuna:main Mar 7, 2024
11 checks passed
@HideakiImamura HideakiImamura added this to the v3.6.0 milestone Mar 7, 2024
@nzw0301 nzw0301 deleted the remove-keras-callback-deprecation branch March 7, 2024 11:27
@HideakiImamura HideakiImamura added the code-fix Change that does not change the behavior, such as code refactoring. label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-fix Change that does not change the behavior, such as code refactoring.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants