In the field of artificial intelligence (AI), a confusion matrix typically shows the performance of a supervised learning algorithm. The analogous table for an unsupervised learning algorithm is usually called a matching matrix. Outside AI, a confusion matrix is often called a contingency table or error matrix.