Two Steps Downhill
Minimize by gradient descent from .
w = 3.0
for _ in range(2):
w = w - eta * grad(w) # grad(w) is the derivative of w**2
What is w after the loop when eta = 0.1, and what happens instead when eta = 1.1?
Sign in to answer questions and track your progress
Sign In