What is the new value of w?
w = 0.5 grad = 2.0 # dLoss/dw lr = 0.1 w = w - lr * grad
- 0.3
- 0.7
- 0.4
- 0.1
Gradient descent steps against the gradient: 0.5 - 0.1 * 2.0 = 0.3.
Play AI & ML ▸
w?w = 0.5 grad = 2.0 # dLoss/dw lr = 0.1 w = w - lr * grad