This is regarding a function in lab_utils_multi.py.
Could someone please let me know how the parameters -32, -67, -1.46 were determined in def plot_cost_i_w(X,y,hist):
I understand that wr is [-0.95 -0.82 -0.69 -0.56 -0.44 -0.31 -0.18 -0.05 0.08 0.21 0.33 0.46 0.59 0.72 0.85 0.98 1.1 1.23 1.36 1.49]. But I do not understand how -32, -67, -1.46 was determined.

1 Like

Which course are you attending?

You did not mention the name, and you posted in the “AI Projects” forum area. It’s not intended for questions about the course material.

Hi, sorry for the inconvenience.

I’m taking the Supervised Machine Learning: Regression and Classification course. The question is related to a week 2 lab.

Also for future reference could you please let me know where I have to post questions?

1 Like

You can move your thread to the correct forum for your course.

You can use the “pencil” icon in the thread title to move your thread.

Select the “Course Q&A” area, then your course, then add a tag for the week number.

Hello @Eranga_88,

At first inspection, looks like it is to find a set of fixed w[1], w[2], w[3] such that the so-defined cost curve will be close to each of the cost values found in the gradient descent. To find them, you might need to solve a system of non-linear equations.


PS: next time, go to the MLS forum first, then to the right course, and hit “Click Topic” there. I have moved this post to the right place for you.

1 Like

Thank you for the response and thank you for moving the question to the correct place.