liveBook · Manning

Logit

As explained in Optimization Algorithms: AI techniques for design, planning, and control problems

A logit is an unnormalized output score produced by a model before conversion into class probabilities.

A logit is an unnormalized output score from a neural network’s final layer. Larger logits indicate stronger evidence that an input belongs to a class; softmax converts them into probabilities. section 9.7

Computing class logits

For the penguins classifier, forward propagation computes hidden activations with tanh, then multiplies them by the output weights and adds output biases: logits = a1.dot(W2) + b2. Softmax and cross-entropy loss use these scores afterward, while prediction can select the class with the largest logit.

How Optimization Algorithms: AI techniques for design, planning, and control problems covers it

How deep it goes
Defines logits and computes them through hidden-layer activation, output weights, and biases before applying softmax.
Examples
Uses a penguins classifier with four inputs, ten hidden units, three output classes, and NumPy forward-propagation code.
What you can do after
Apply it via Python and NumPy to compute class scores, probabilities, loss, and predictions.
How it connects
Connects logits with neural networks, tanh, softmax, cross-entropy loss, forward propagation, and argmax prediction.

Also explained in

Compare how 17 books explain logit →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Optimization Algorithms: AI techniques for design, planning, and control problems. The section links point to the parts of the book it draws on.