Repository navigation
Deprecate x0 and sigma0 options in CmaEsSampler - #6624
Merged
Merged
Conversation
Member
|
@y0z Could you review this PR? |
c-bata
commented
Apr 15, 2026
Comment on lines
116
to
+123
| x0: | ||
| A dictionary of an initial parameter values for CMA-ES. By default, the mean of ``low`` | ||
| and ``high`` for each distribution is used. Note that ``x0`` is sampled uniformly | ||
| within the search space domain for each restart if you specify ``restart_strategy`` | ||
| argument. | ||
| and ``high`` for each distribution is used. | ||
|
|
||
| .. warning:: | ||
| Deprecated in v4.9.0. ``sigma0`` argument will be removed in the future. | ||
| The removal of this feature is currently scheduled for v6.0.0, | ||
| but this schedule is subject to change. |
Member
Author
There was a problem hiding this comment.
Should we remove x0 and sigma0 from the docs? If you agree, I'll address this in a separate PR (including restart_strategy option which was already deprecated).
c-bata
force-pushed
the
remove-cmaes-x0-sigma0
branch
from
April 15, 2026 06:58
cc49857 to
47a4b7b
Compare
not522
reviewed
Apr 17, 2026
not522
left a comment
Member
There was a problem hiding this comment.
Thank you for your PR. Please check my comments.
Co-authored-by: Naoto Mizuno <[email protected]>
Co-authored-by: Naoto Mizuno <[email protected]>
Member
|
It seems that CIs still fail with respect to |
Member
|
Sorry, |
not522
self-requested a review
April 17, 2026 05:45
c-bata
force-pushed
the
remove-cmaes-x0-sigma0
branch
from
April 17, 2026 06:09
8c13d2d to
84e4459
Compare
Member
Author
|
No, problem. I've removed the latest commit and force-pushed. Thank you for your thorough review! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The
x0andsigma0options were originally inherited from PyCmaSampler. However, these options are difficult to use and require an unnecessarily deep understanding of CmaEsSampler's internal implementation.Following a discussion with the core development team, we have decided to deprecate these options to simplify the API.
Description of the changes
x0andsigma0options in CmaEsSampler