There's more...

While the scope of the book does not allow for a complete treatment of the confusion matrix, a short explanation and a link are provided as a quick reference.

The confusion matrix is just a fancy name for an error matrix. It is mostly used in unsupervised learning to visualize the performance. It is a layout that captures actual versus predicted outcomes with an identical set of labels in two dimensions:

Confusion Matrix

To get a quick introduction to the confusion matrix in unsupervised and supervised statistical learning systems, see https://en.wikipedia.org/wiki/Confusion_matrix.

Get Apache Spark 2.x Machine Learning Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.