Skip to content

Commit ee13a7f

Browse files
authored
Merge pull request #110 from Uriegas/patch-2
Fix typo in hw8.jl
2 parents e4dd66e + e531e2d commit ee13a7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebooks/week9/hw8.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ As a refresher, we'll want to think of a function as a hill. To find a minimum w
485485
486486
We want to minimize a 1D function, i.e. a function $f: \mathbb{R} \to \mathbb{R}$. To do so we notice that the derivative tells us the direction in which the function *increases*. Positive slope means that the minimum is to the left, negative slope means to the right. So our _gradient descent method_ is to take steps in the *opposite* direction, of a small size $\eta \cdot f'(x_0)$.
487487
488-
👉 Write a function `gradient_descent_1d_step(f, x0)` that performs a single gradient descrent step, from the point `x0` and using your function `finite_difference_slope` to approximate the derivative. The result should be the next guess for ``x``.
488+
👉 Write a function `gradient_descent_1d_step(f, x0)` that performs a single gradient descent step, from the point `x0` and using your function `finite_difference_slope` to approximate the derivative. The result should be the next guess for ``x``.
489489
490490
"""
491491

0 commit comments

Comments
 (0)