Skip to content

Delete optuna.integration.ChainerMNStudy for migrating to optuna-integration package#4497

Merged
contramundum53 merged 2 commits intooptuna:masterfrom
HideakiImamura:remove-chainermn-integration
Mar 27, 2023
Merged

Delete optuna.integration.ChainerMNStudy for migrating to optuna-integration package#4497
contramundum53 merged 2 commits intooptuna:masterfrom
HideakiImamura:remove-chainermn-integration

Conversation

@HideakiImamura
Copy link
Copy Markdown
Member

Motivation

Same motivation as #4370.

In this PR, I delete the optuna.integration.ChainerMNStudy for optuna-integration.

Description of the changes

  • Delete optuna.integration.ChainerMNStudy and its test.
  • Fix CI workflows.
  • Fix dependencies.

@github-actions github-actions bot added the optuna.integration Related to the `optuna.integration` submodule. This is automatically labeled by github-actions. label Mar 8, 2023
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #4497 (ebc8925) into master (36e0a06) will increase coverage by 0.01%.
The diff coverage is 0.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #4497      +/-   ##
==========================================
+ Coverage   90.04%   90.06%   +0.01%     
==========================================
  Files         181      181              
  Lines       14026    13842     -184     
==========================================
- Hits        12630    12467     -163     
+ Misses       1396     1375      -21     
Impacted Files Coverage Δ
optuna/integration/chainermn.py 0.00% <0.00%> (-87.10%) ⬇️
optuna/study/study.py 94.23% <0.00%> (-0.77%) ⬇️
optuna/progress_bar.py 87.69% <0.00%> (+1.53%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@HideakiImamura
Copy link
Copy Markdown
Member Author

@gen740 @c-bata Could you review this PR?

Copy link
Copy Markdown
Member

@gen740 gen740 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Member

@c-bata c-bata left a comment

Choose a reason for hiding this comment

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

Changes overall look good to me. I left one question though.

def test_module_attributes() -> None:
import optuna

assert hasattr(optuna.integration, "chainermn")
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[question] Do you think we should remove these lines even though we leave the optuna.integration.chainermn module for backward compatibility. Or is it possible to install optuna-integration in tests-integration.yml and pass these tests?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If we continue to conduct this test on the Optuna side, there will continue to be a dependency on Chainer, which is not desirable from the initial motivation of migrating the integration module. Therefore, I think the current approach of completely removing the dependency on Chainer from the test is appropriate. What do you think? @contramundum53 @gen740

Copy link
Copy Markdown
Member

@contramundum53 contramundum53 Mar 27, 2023

Choose a reason for hiding this comment

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

Does it?
I think we could check whether "chainermn" exists in optuna.integration without actually importing it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@gen740 pointed out that simply calling hasattr on "chainermn" would cause it to be imported. I think removing the test is Okay.

@c-bata c-bata added compatibility Change that breaks compatibility. and removed compatibility Change that breaks compatibility. labels Mar 14, 2023
@c-bata c-bata assigned cross32768 and contramundum53 and unassigned c-bata and cross32768 Mar 17, 2023
@c-bata
Copy link
Copy Markdown
Member

c-bata commented Mar 22, 2023

@contramundum53 Could you review this PR?

Copy link
Copy Markdown
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 except for @c-bata 's comment.

@contramundum53 contramundum53 added the compatibility Change that breaks compatibility. label Mar 27, 2023
@contramundum53 contramundum53 added this to the v3.2.0 milestone Mar 27, 2023
@contramundum53 contramundum53 merged commit 729ccbf into optuna:master Mar 27, 2023
@HideakiImamura HideakiImamura deleted the remove-chainermn-integration branch June 9, 2023 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compatibility Change that breaks compatibility. optuna.integration Related to the `optuna.integration` submodule. This is automatically labeled by github-actions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants