Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nabenabe0928 committed Dec 12, 2024
1 parent 8fc84e9 commit 087d11a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/samplers/hebo/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def sample_independent(
param_name: str,
param_distribution: BaseDistribution,
) -> Any:
states = (TrialState.COMPLETE, )
states = (TrialState.COMPLETE,)
trials = study._get_trials(deepcopy=False, states=states, use_cache=True)
if any(param_name in trial.params for trial in trials):
_logger.warn(f"Use `RandomSampler` for {param_name} due to dynamic search space.")
Expand Down

0 comments on commit 087d11a

Please sign in to comment.