Slide 63
Slide 63 text
Gradient Descent - recipe
Step 1: Decide on what function h(x) you want to find
h(x) = a * x + b parameters to find: a, b
Step 2: Decide on function that measures efficiency of h(x)
Mean Squared Errors the lower value the better a, b parameters
Step 3: Take derivatives of MSE in respect to a, b
dMSE(h(x), y)
da
=
dMSE(h(x), y)
db
=
Step 4: Update a, b
a = a - lr * b = b - lr *
dMSE(h(x), y)
da
dMSE(h(x), y)
db
lr - small value between 0.001 - 0.1