How do I create a confusion matrix for data visualization?

Hey, I took this picture from my course notebook and I was curious how to implement this, as there was no code given in the notebook, my teacher only showed me the output by printing it like this:

Screenshot 2023-03-10 224456
Can anyone reply to me with its solution? She used iris dataset here.

1 Like