Simple Linear Regression
Ignore the last bit:
 1.jpeg)
A Linear relation is made between the I/P and O/P changes.
The error is determined from the deviation between the true value and predicted value.
What determines these weights and the slope of the line/ hyperplane is not random, but via the Cost, Convergence, Gradient fns.