Can Linear Regression Solve Classification?
You're a loan officer at a community bank. You have records from eight recent applicants — some repaid their loans, some defaulted. Your manager wants a model:…
~/blog/tutorials/machine-learning
You're a loan officer at a community bank. You have records from eight recent applicants — some repaid their loans, some defaulted. Your manager wants a model:…
You're a loan officer who just learned that linear regression can't produce valid probabilities for classification. The fix is a function called the sigmoid — b…
Your logistic regression model outputs a probability — 0.95, 0.63, 0.08 — for each loan applicant. At some threshold you convert those to predictions: default o…
Your logistic regression model works well for two classes — default vs no default, malignant vs benign. But your new dataset has three iris species to classify:…
You've worked through the sigmoid, the cross-entropy loss, the gradient update, and the evaluation metrics. Now it's time to run logistic regression on a real d…