This is a python implementation of a linear regressor, which models the relationship between a dependent variable (target) and one or more independent variables (features).
A linear regression model makes the assumption of an existing linear relationship between the features and the target.
A linear regressor is defined as:
where
To find the optimal values for the regressor coefficients, we use Mean Squared Error (MSE) as the cost function, updating
The MSE objective function is defined as the average of squared error that occurred between the predicted