$ ./guess_the_languageAI & ML
AI & ML · easy · #32

What is the new value of w?

w = 0.5
grad = 2.0      # dLoss/dw
lr = 0.1
w = w - lr * grad
  1. 0.3
  2. 0.7
  3. 0.4
  4. 0.1
Gradient descent steps against the gradient: 0.5 - 0.1 * 2.0 = 0.3.
Play AI & ML ▸