Linear and logistic regression with evaluation
Linear regression models a continuous target as a weighted sum of the input features, with weights chosen to minimise the mean squared error between predictions and actual values.
Despite its name, logistic regression is a classification method that passes a linear combination of features through the sigmoid function to output a class probability between zero and one.
Regression quality is measured with MSE, RMSE and the R squared score, while classification uses accuracy, precision, recall and the F1 score, chosen according to the problem and class balance.
This unit introduced regression for continuous targets and logistic regression for classification, together with the metrics used to judge regression and classification performance.