Skip to content

Commit cb32ba0

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

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/dl_workshop/answers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Answers to the main tutorial notebooks.
33
"""
4+
45
import jax.numpy as np
56
import numpy.random as npr
67
from jax import grad
@@ -81,7 +82,7 @@ def logistic_loss(params, model, x, y):
8182

8283

8384
def f(w):
84-
return w ** 2 + 3 * w - 5
85+
return w**2 + 3 * w - 5
8586

8687

8788
def df(w):

src/dl_workshop/jax_idioms.py

Lines changed: 1 addition & 1 deletion
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():

src/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Setup script."""
2+
23
from setuptools import find_packages, setup
34

45
setup(name="dl_workshop", version="0.1", packages=find_packages())

0 commit comments

Comments
 (0)