Skip to content

Commit

Permalink
Add a message
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Sep 30, 2024
1 parent 8162409 commit baf5ff3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions package/samplers/user_prior_cmaes/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ def sample_relative(
def _calculate_initial_params(
self, trans: _SearchSpaceTransform
) -> tuple[np.ndarray, float, np.ndarray]:
# NOTE(nabenabe): Except this method, everything is basically based on Optuna v4.0.0.
# As this class does not support some cases supported by Optuna, I simply added validation
# to each method, but otherwise, nothing changed. In principle, if users find a bug, it is
# likely that the bug exists in this method.
search_space = trans._search_space.copy()
if any(
not isinstance(d, (IntDistribution, FloatDistribution)) for d in search_space.values()
Expand Down

0 comments on commit baf5ff3

Please sign in to comment.