Skip to content

Commit

Permalink
V0.3.5 (#84)
Browse files Browse the repository at this point in the history
* choose one direction
  • Loading branch information
sonichi authored May 1, 2021
1 parent 3e991e4 commit e5123f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions flaml/searcher/flow2.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,12 @@ def suggest(self, trial_id: str) -> Optional[Dict]:
for i, key in enumerate(self._tunable_keys):
move[key] -= self._direction_tried[i]
self._direction_tried = None
# propose a new direction
self._direction_tried = self.rand_vector_unit_sphere(
self.dim) * self.step
for i, key in enumerate(self._tunable_keys):
move[key] += self._direction_tried[i]
else:
# propose a new direction
self._direction_tried = self.rand_vector_unit_sphere(
self.dim) * self.step
for i, key in enumerate(self._tunable_keys):
move[key] += self._direction_tried[i]
self._project(move)
config = self.denormalize(move)
self._proposed_by[trial_id] = self.incumbent
Expand Down
2 changes: 1 addition & 1 deletion flaml/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.3.4"
__version__ = "0.3.5"

0 comments on commit e5123f5

Please sign in to comment.