liveBook · Manning

Perceptron error function

A perceptron loss function that assigns zero to correctly classified instances and the absolute score to misclassified instances.

How 2 Manning books explain it

Grokking Machine Learning

An error metric for a perceptron that assigns zero to correctly classified points and the absolute value of the perceptron's score to misclassified points.

How it is used
Measures how strongly a perceptron misclassifies points and tracks error while its classifier is improved.
How deep it goes
Defines pointwise error, averages it across a dataset, and implements both; substitutes score magnitude for a perpendicular-distance calculation.
Examples
Compares classifiers on four labeled sentences and tests an error-reducing update on a misclassified point.
What you can do after
Build it from scratch with a pointwise error function and dataset average, then track that average during perceptron training.

Read how Grokking Machine Learning explains perceptron error function →

Grokking Machine Learning, Second Edition

An error measure that assigns zero to correctly classified points and the absolute value of the perceptron score to misclassified points.

How it is used
Measures perceptron mistakes to compare classifiers and track progress during repeated updates.
How deep it goes
Defines point and mean error, motivates score magnitude over distance, and implements both in Python.
Examples
Uses alien-word-count sentences, two classifiers, and a four-point score-and-error table.
What you can do after
Build it from scratch by computing point errors and averaging them to monitor a perceptron algorithm.

Read how Grokking Machine Learning, Second Edition explains perceptron error function →

What to know first

Related concepts

Questions about perceptron error function

What is perceptron error function?

A perceptron loss function that assigns zero to correctly classified instances and the absolute score to misclassified instances.

Which Manning books explain perceptron error function?

Grokking Machine Learning and Grokking Machine Learning, Second Edition.

What should I know before learning perceptron error function?

Manning books that teach perceptron error function usually introduce absolute error, batch gradient descent, COVID-19 and inner product first.

What is perceptron error function a kind of?

Perceptron error function is a kind of objective function. An objective function is a mathematical function that assigns values to candidate solutions or parameter settings, which an optimization procedure seeks to minimize or maximize.

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.