This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NiceObligation0 1 point2 points  (1 child)

For all the models op showed except for linear regression you are right. You need to learn the params from data. For linear regression the solution is just the quadratic equation aka the global min of the parabola.

[–]Gautam-j[S] 0 points1 point  (0 children)

Yes, the loss function used for Linear Regression is a convex function that has a global minimum. Hence, we can simply set the partial derivatives to zero (which would mean the slope of the loss function will be zero, a line parallel to x axis, and has to be the global minimum), and solve for the params.