Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2022
1 parent c7a0169 commit d024e93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dl_workshop/answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def logistic_loss(params, model, x, y):


def f(w):
return w ** 2 + 3 * w - 5
return w**2 + 3 * w - 5


def df(w):
Expand Down
2 changes: 1 addition & 1 deletion src/dl_workshop/jax_idioms.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def randomness_ex_3(key, num_realizations: int, grw_draw: Callable):

def goldfield(x, y):
"""All credit to https://www.analyzemath.com/calculus/multivariable/maxima_minima.html for this function."""
return (2 * x ** 2) - (4 * x * y) + (y ** 4 + 2)
return (2 * x**2) - (4 * x * y) + (y**4 + 2)


def grad_ex_1():
Expand Down

0 comments on commit d024e93

Please sign in to comment.