Skip to content

Commit

Permalink
fix(RandomSearch): Use initial passed in value (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiebergman authored Feb 14, 2025
1 parent 4852bde commit da8d8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion neps/optimizers/random_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __call__(
for config in config_dicts:
config.update(self.space.constants)

if n == 1:
if n is None:
config = config_dicts[0]
config_id = str(n_trials + 1)
return SampledConfig(config=config, id=config_id, previous_config_id=None)
Expand Down

0 comments on commit da8d8b6

Please sign in to comment.