Skip to content

Commit

Permalink
Black formatting in gradient_based.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mschmidt87 committed May 7, 2020
1 parent 5dd8a47 commit 140da25
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions gp/local_search/gradient_based.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
from ..individual import Individual # noqa: F401


def gradient_based(individuals: List[Individual], objective: Callable,
lr: float, gradient_steps: int, optimizer: torch.optim.Optimizer =
None, clip_value: Optional[float] = None):
def gradient_based(
individuals: List[Individual],
objective: Callable,
lr: float,
gradient_steps: int,
optimizer: torch.optim.Optimizer = None,
clip_value: Optional[float] = None,
):
"""Perform a local search for numeric leaf values for the list of
individuals based on gradient information obtained via automatic
differentiation.
Expand Down

0 comments on commit 140da25

Please sign in to comment.