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

Use step to calculate range of IntUniformDistribution in PyCmaSampler. #1456

Conversation

toshihikoyanase
Copy link
Member

Motivation

This PR derived from #1302 (comment).

Description of the changes

PyCmaSampler does not consider the IntUniformDistribution.step to calculate the range (i.e., low, high). I think it is inconsistent with the range calculation for DiscreteUniformDistribution. This PR fixes the range of IntUniformDistribution.

Copy link
Member

@hvy hvy left a comment

Choose a reason for hiding this comment

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

Should we label this as a bug? The changes LGTM.

Edit: Also, could you just resolve the conflicts?

@hvy hvy added this to the v2.0.0 milestone Jun 30, 2020
@toshihikoyanase toshihikoyanase force-pushed the pycma-update-range-based-on-step branch from 508b108 to ea562f9 Compare June 30, 2020 10:45
@toshihikoyanase
Copy link
Member Author

Thank you for your review. I resolved the conflict.

Should we label this as a bug?

Hmm, I think it is bug or enhancement. IMO, bug may be more appropriate because this issue may cause performance degradation when the solution is low or high.

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 38eff78 into optuna:master Jul 1, 2020
@HideakiImamura HideakiImamura added the bug Issue/PR about behavior that is broken. Not for typos/examples/CI/test but for Optuna itself. label Jul 1, 2020
@toshihikoyanase toshihikoyanase deleted the pycma-update-range-based-on-step branch March 7, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue/PR about behavior that is broken. Not for typos/examples/CI/test but for Optuna itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants