Logistic regression
From Rice Wiki
Linear regression
Linear regression cannot be directly used for (binary) classification. Indirectly, a threshold is used. When the value is above the threshold, it is considered 1; when it is below, it is considered 0.
Classification using linear regression is sensitive to the threshold. The problem with this approach is the difficulty in determining a good threshold.