# Confusion Matrix (`xcolumns.confusion_matrix`) `xcolumns.confusion_matrix` module implements confusion matrix object and functions that can be used to calculate it. In xCOLUMNs, the confusion matrix is parametrized by four matrices: true positive (tp), false positive (fp), false negative (fn), and true negative (tn). The confusion matrix object can be used to calculate the metrics based on the confusion matrix. xCOLUMNs implements the popular metrics in [`xcolumns.metrics`](metrics) module. ```{eval-rst} .. automodule:: xcolumns.confusion_matrix :members: :undoc-members: :show-inheritance: ```