Demystifying ‘Confusion Matrix’ Confusion
If you are Confused about Confusion Matrix, then I hope this post may help you understand it! Happy Reading. We will use the UCI Bank Note Authentication Dataset for demystifying the confusion behind Confusion Matrix. We will predict and evaluate our model, and along the way develop our conceptual understanding. Also will be providing the links to further reading wherever required. Understanding the Data The Dataset contains properties of the wavelet transformed image of 400x400 pixels of a BankNote, and can be found here . It is recommended for reader to download the dataset and follow along. Further for reference, you can find the Kaggle Notebook here . #Skipping the necessary Libraries import #Reading the Data File df = pd.read_csv('../input/BankNote_Authentication.csv') df.head(5) Sample Data (using Head) #To check if the data is equally balanced between the target classes df['class'].value_counts() Target Class is balanced enough Building the Model Splitting th...