Classes as numbers
A number is not yet a decision
In Regularization we controlled the size of regression weights. Now the target is a class. Encode labels as and use a linear score . Predict when and otherwise. We explicitly give a zero score to the positive class.
Why not regress on these numerical labels? In a newly specified one-dimensional example, negative points are and positive points are . Least squares with an intercept gives . The boundary is and every sign is correct. Add a positive point at : the fit becomes
Now the boundary has moved past the positive point at , although still separates the data. Squared error charges a correctly classified point even when its score is much greater than . Fitting numerical labels and choosing correct signs are different objectives. This is an exact, fictional calculation, not a benchmark result or a claim that least-squares classification always fails.