The Alchemist.
HomeAI EngineeringSubstack
SubscribeLogin
Machine Learning
Feature Engineering
Imbalanced Datasets
Linear Regression
Logistic Regression
Svm
Naive Bayes
Knn
Decision Tree
Ensemble
Unsupervised
  1. Home
  2. Blog
  3. Machine Learning
  4. Logistic Regression
Back to Machine Learning

~/blog/tutorials/machine-learning

Logistic Regression

Tutorial
Jun 27, 20267 min read
0

Can Linear Regression Solve Classification?

Before learning logistic regression, you should know exactly why linear regression fails at classification. Not "it's not designed for it" — that's circular. Th…

Tutorial
Jun 26, 202610 min read
0

Logistic Regression: Math Intuition

Logistic regression produces probabilities, not class labels. Understanding where those probabilities come from — and why binary cross-entropy is the right loss…

Tutorial
Jun 26, 20268 min read
0

Classification Performance Metrics

Accuracy is one number. Classification produces four outcomes. The entire story of model quality — who you're catching, who you're missing, and what false alarm…

Tutorial
Jun 26, 20267 min read
0

Multiclass Logistic Regression: OvR (One vs Rest)

Binary logistic regression outputs $P(y=1|x)$. With 3 classes you can't use one model — you need a strategy. One-vs-Rest (OvR) decomposes the 3-class problem in…

Tutorial
Jun 26, 20266 min read
0

Logistic Regression: Full Implementation

Theory is complete. This post runs logistic regression end-to-end on a real binary classification dataset: data loading, preprocessing, fitting, evaluation, hyp…

© 2026 Mohammed Vasim. Built with curiosity.