def save_csv(
            self,
            name,
            address=True,
            class_param=None,
            class_name=None,
            matrix_save=True,
            normalize=False):
        """
        Save ConfusionMatrix in CSV file.

        :param name: filename
        :type name : str
        :param address: flag for address return
        :type address : bool
        :param class_param : class parameters list for save, Example : ["TPR","TNR","AUC"]
        :type class_param : list
        :param class_name : class name (sub set of classes), Example :[1,2,3]
        :type class_name : list
        :param matrix_save : save matrix flag
        :type matrix_save : bool
        :param normalize : save normalize matrix flag
        :type normalize : bool
        :return: saving Status as dict {"Status":bool , "Message":str}
        """
        try:
            message = None
            classes = class_filter(self.classes, class_name)
            csv_file = open(name + ".csv", "w")
            csv_data = csv_print(
                classes,
                self.class_stat,
                self.digit,
                class_param)
            csv_file.write(csv_data)
            if matrix_save:
                matrix = self.table
                if normalize:
                    matrix = self.normalized_table
                csv_matrix_file = open(name + "_matrix" + ".csv", "w")
                csv_matrix_data = csv_matrix_print(self.classes, matrix)
                csv_matrix_file.write(csv_matrix_data)
            if address:
                message = os.path.join(os.getcwd(), name + ".csv")
            return {"Status": True, "Message": message}
        except Exception as e:
            return {"Status": False, "Message": str(e)}
def save_csv ( self , name , address = True , class_param = None , class_name = None , matrix_save = True , normalize = False ) : try : message = None classes = class_filter ( self . classes , class_name ) csv_file = open ( name + ".csv" , "w" ) csv_data = csv_print ( classes , self . class_stat , self . digit , class_param ) csv_file . write ( csv_data ) if matrix_save : matrix = self . table if normalize : matrix = self . normalized_table csv_matrix_file = open ( name + "_matrix" + ".csv" , "w" ) csv_matrix_data = csv_matrix_print ( self . classes , matrix ) csv_matrix_file . write ( csv_matrix_data ) if address : message = os . path . join ( os . getcwd ( ) , name + ".csv" ) return { "Status" : True , "Message" : message } except Exception as e : return { "Status" : False , "Message" : str ( e ) }
Save ConfusionMatrix in CSV file.

        :param name: filename
        :type name : str
        :param address: flag for address return
        :type address : bool
        :param class_param : class parameters list for save, Example : ["TPR","TNR","AUC"]
        :type class_param : list
        :param class_name : class name (sub set of classes), Example :[1,2,3]
        :type class_name : list
        :param matrix_save : save matrix flag
        :type matrix_save : bool
        :param normalize : save normalize matrix flag
        :type normalize : bool
        :return: saving Status as dict {"Status":bool , "Message":str}