A Neural Network
Target and loss calculation
Linear Regression Model Fit (House Size vs Price)
Loss Calculation
For measuring the size of the mistake, we don't want the negative sign to cancel anything. Loss function is used to measure the error between predicted value and actual value, and it is always positive.
Linear Regression Model Fit (House Size vs Price)