Skip to content

Commit f55a0cc

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a16c45b commit f55a0cc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/dl_workshop/answers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def logistic_loss(params, model, x, y):
8181

8282

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

8686

8787
def df(w):

Diff for: src/dl_workshop/jax_idioms.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def randomness_ex_3(key, num_realizations: int, grw_draw: Callable):
9393

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

9898

9999
def grad_ex_1():

0 commit comments

Comments
 (0)