How to show `confusion matrix` after test epoch?

self.log('confusiong_matrix',self.metrics(preds,target)) not work. So how can I show this metric when I finish test on test dataset?

Hello, my apology for the late reply. We are slowly converging to deprecate this forum in favor of the GH build-in version… Could we kindly ask you to recreate your question there - Lightning Discussions