# Logistic Regression

Logistic Regression: Logistic Regression, Probabilities and the 0.5 Line.

Updated: November 19, 2026

1. [Logistic Regression](https://www.ask-codey.com/lessons/ml-logistic-regression) (Journeyman): Logistic regression adds up a weighted score for each example, as a linear regression does, then bends it with an S-shaped curve into a probability between 0 and 1, which makes it a classifier despite its name, with C setting how simple scikit-learn keeps it and max_iter how long it may search.
2. [Probabilities and the 0.5 Line](https://www.ask-codey.com/lessons/ml-predicted-probabilities) (Journeyman): predict_proba gives each example one probability per class, in the order of classes\_, predict picks the class with the highest one, which for two classes is a line at 0.5, and the probability is the model's confidence, not a guarantee, so you can draw the line somewhere else when the job needs it.

Source: https://www.ask-codey.com/courses/machine-learning-python/topics/ml-logistic-regression-topic
