code: def save_obj(self, name, address=True):
          
          try:
              message = None
              obj_file = open(name + ".obj", "w")
              actual_vector_temp = self.actual_vector
              predict_vector_temp = self.predict_vector
              matrix_temp = {k: self.table[k].copy() for k in self.classes}
              matrix_items = []
              for i in self.classes:
                  matrix_items.append((i, list(matrix_temp[i].items())))
              if isinstance(actual_vector_temp, numpy.ndarray):
                  actual_vector_temp = actual_vector_temp.tolist()
              if isinstance(predict_vector_temp, numpy.ndarray):
                  predict_vector_temp = predict_vector_temp.tolist()
              json.dump({"Actual-Vector": actual_vector_temp,
                         "Predict-Vector": predict_vector_temp,
                         "Matrix": matrix_items,
                         "Digit": self.digit,
                         "Sample-Weight": self.weights,
                         "Transpose": self.transpose}, obj_file)
              if address:
                  message = os.path.join(os.getcwd(), name + ".obj")
              return {"Status": True, "Message": message}
          except Exception as e:
              return {"Status": False, "Message": str(e)}
docs: Save ConfusionMatrix in .obj file.
  
          :param name: filename
          :type name : str
          :param address: flag for address return
          :type address : bool
          :return: saving Status as dict {"Status":bool , "Message":str}