https://www.coursera.org/learn/machine-learning/lecture/FthLz/cost-function-intuition

Hello everyone.

how can I draw a linear line knowing the value of w?
Also, while minimizing the J, would not w=0 is a better choice the = 1?

Thank you in advance.

If there is only one feature, then ‘w’ is the slope, and ‘b’ is the y-intercept.

If w=0, then the line is horizontal.

Rather that use a course URL as the thread title, please use it to list the week number and assignment, and a short version of your question.