Linear regression is a very old method and part of traditional statistics. Machine learning linear regression involves a training and testing set. This way, it can be compared by utilizing cross-validation with other models and algorithms. Traditional linear regression trains and tests on the whole dataset. This is still a common practice, possibly because linear regression tends to underfit rather than overfit.
Introduction
Using linear methods for classification – logistic regression
As seen in Chapter 1, High-Performance Machine Learning – NumPy, logistic regression is a classification method. In some contexts, it is a regressor as it computes the real number probability of a class before assigning a categorical...