Classification score
A classification score is a real-valued output representing a classifier’s support, confidence, or signed strength for a predicted class.
Grokking Machine Learning
A signed numerical output of a linear classifier whose sign indicates the predicted class and whose magnitude indicates distance from the decision boundary.
- How it is used
- Turns weighted features and a bias into a signed value used to predict one of two classes.
- How deep it goes
- Works from word-count arithmetic to weighted sums, boundary geometry and error severity, without deriving a distance formula.
- Examples
- Scores happy and sad sentences by word counts and compares differently sized mistakes on a sad example.
- What you can do after
- Apply it to calculate a linear classifier’s score, make a binary prediction and recognize when mistake counts hide error severity.
Read how Grokking Machine Learning explains classification score →
Grokking Machine Learning, Second Edition
A real-valued classifier output, often computed as a weighted combination of input features, that represents support for a class before conversion to a prediction or probability.
- How it is used
- Supports perceptron predictions by combining feature evidence before assigning a binary class.
- How deep it goes
- Derives weighted sums and bias, then implements score, prediction, and score-based perceptron error.
- Examples
- Uses alien sentences counted by word, two competing classifiers, and a crack-and-doink threshold example.
- What you can do after
- Build it from scratch as a weighted feature sum with bias, then convert it into a perceptron or logistic prediction.
Read how Grokking Machine Learning, Second Edition explains classification score →
What to know first
- inner productAn inner product is a scalar-valued operation on two vectors that generalizes the dot product, which for real coordinate vectors is the sum of products of corresponding components.
- inputAn input is information, a value, or an action supplied to a system, program, or computation for processing or to influence its behavior.
- linear regressionLinear regression is a statistical method that models a numeric response as a linear function of one or more predictor variables with fitted parameters.
- gradient descentGradient descent is an iterative optimization method that updates parameters in the direction opposite an objective function’s gradient to reduce the objective’s value.
Related concepts
- perceptron error functionused by · A perceptron loss function that assigns zero to correctly classified instances and the absolute score to misclassified instances.
- interceptequivalent to · An intercept is an additive constant parameter in a model that shifts its output independently of its input features.
- inner productuses · An inner product is a scalar-valued operation on two vectors that generalizes the dot product, which for real coordinate vectors is the sum of products of corresponding components.
- model weightequivalent to · A model weight is a learned numerical parameter that influences a machine-learning model’s computations and behavior.
- softmaxused by · Softmax is a function that exponentiates each value in a score vector and normalizes the results to produce positive values summing to one, forming a probability distribution.
- sentiment classifierproduced by · A sentiment classifier is a machine-learning model that assigns sentiment categories or scores to input content, especially text.
Questions about classification score
What is classification score?
A classification score is a real-valued output representing a classifier’s support, confidence, or signed strength for a predicted class.
Which Manning books explain classification score?
Grokking Machine Learning and Grokking Machine Learning, Second Edition.
What should I know before learning classification score?
Manning books that teach classification score usually introduce inner product, input, linear regression and gradient descent first.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

