From a score to a probability
Classification predicts a category, but most classifiers first produce a number. Logistic regression, the standard baseline for yes-or-no problems, computes the same weighted sum as linear regression and then squashes it into the range 0 to 1 with the sigmoid function:
A score of maps to 0.5, large positive scores approach 1, large negative ones approach 0. Each weight has a readable meaning: increasing feature by one unit multiplies the odds by .
Key idea: The model's output is a probability-like score, not a decision. Turning 0.37 into "fraud" or "not fraud" is a separate step, and most evaluation mistakes come from treating the two as one.

