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

Fix inconsistencies between terminator and terminator visualization i… #5276

Merged
merged 1 commit into from Feb 28, 2024

Conversation

SimonPop
Copy link
Contributor

Hi!

The goal of this pull request is to answer issue #5073

Motivation

As mentioned in the issue, the objective is to harmonize the plot_terminator_improvement function and Terminator class when initializing the error_evaluator object.

Description of the changes

It adds a similar logic to the initialization of the error_evaluator for plot_terminator_improvement so that it reflects what the Terminator class does.

Suggestions

Currently, I replicated the logic in plot_terminator_improvement. Should I factorize that code with that of the Terminator class so that when updated, we do not risk creating the same discrepancy in the future?

I could add a static method to Terminator to initialize error_evaluator. What do you think? That way, I could also add a unit test more easily.

Copy link

codecov bot commented Feb 25, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 89.58%. Comparing base (855692a) to head (ca2cfe7).

Files Patch % Lines
optuna/visualization/_terminator_improvement.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5276      +/-   ##
==========================================
+ Coverage   89.57%   89.58%   +0.01%     
==========================================
  Files         209      209              
  Lines       13097    13101       +4     
==========================================
+ Hits        11732    11737       +5     
+ Misses       1365     1364       -1     

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

@y0z
Copy link
Member

y0z commented Feb 26, 2024

@contramundum53 Could you review this PR?

@contramundum53
Copy link
Member

contramundum53 commented Feb 26, 2024

Thank you for your contribution!
I'll review this PR.

Copy link
Member

@contramundum53 contramundum53 left a comment

Choose a reason for hiding this comment

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

LGTM!

@contramundum53
Copy link
Member

@HideakiImamura Could you review this PR as the author of the issue?

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 81602e0 into optuna:master Feb 28, 2024
21 checks passed
@HideakiImamura HideakiImamura added the enhancement Change that does not break compatibility and not affect public interfaces, but improves performance. label Feb 28, 2024
@HideakiImamura HideakiImamura added this to the v3.6.0 milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Change that does not break compatibility and not affect public interfaces, but improves performance.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants