code: def get_matrix(self):
      y_test = label_binarize(
          self.y_test, classes=list(set(self.y_test.flatten()))
      )
      n_classes = y_test.shape[1]
      conf_matrix = confusion_matrix(
          y_test.argmax(axis=1), self.y_pred.argmax(axis=1)
      )
  
      return conf_matrix
  
imports: import pandas
  import numpy
  import sklearn
  from sklearn import *
  from sklearn.ensemble import RandomForestClassifier
  from sklearn.model_selection import train_test_split
  from sklearn.preprocessing import label_binarize
  from sklearn.metrics import *
  from itertools import cycle
  import colorlover
  import plotly.figure_factory
  import plotly.graph_objects
label_desc: Use image node_id 3 for calling the performance_metrics obj's underlying member method code with example usage: obj.get_matrix() and returns: conf_matrix