h(x) = t0 + t1x. Alpha value (learning rate) is 0.1. Initial theta values are 0, 0. X = and Y = . What is the value of cost function after 1st iteration?

h(x) = t0 + t1x. Alpha value (learning rate) is 0.1. Initial theta values are 0, 0. X = and Y = . What is the value of cost function after 1st iteration? Correct Answer 1, 2, 3

t0 = 0 – 0.1 / 3((0+0*1 – 1) + (0 + 0 * 2 – 3) + (0 + 0 * 3 – 5)) = -0.1/3 (-9) t0 = 0.3 t1 = 0-0.1/3((0 + 0 * 1 – 1)1 + (0+0*2–3)2 + (0 + 0 * 3 – 5)3) t1 = 0.73 Cost = 1/6((.3 + .73 * 1 – 1)2 + (.3 + .73 * 2 – 3)2 + (.3 + .73 * 3 – 5)2) = 1.2953.

Related Questions

What is the value of [(cos 3θ + 2cos 5θ + cos 7θ)÷(cos θ + 2cos 3θ + cos 5θ)] + sin 2θ tan 3θ?