Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
cm.matrix = cm.table
cm.normalized_table = normalized_table_calc(cm.classes, cm.table)
cm.normalized_matrix = cm.normalized_table
cm.TP = matrix_param[2]
cm.TN = matrix_param[3]
cm.FP = matrix_param[4]
cm.FN = matrix_param[5]
statistic_result = class_statistics(
TP=matrix_param[2],
TN=matrix_param[3],
FP=matrix_param[4],
FN=matrix_param[5],
classes=matrix_param[0],
table=matrix_param[1])
cm.class_stat = statistic_result
cm.overall_stat = overall_statistics(
RACC=statistic_result["RACC"],
RACCU=statistic_result["RACCU"],
TPR=statistic_result["TPR"],
PPV=statistic_result["PPV"],
F1=statistic_result["F1"],
TP=statistic_result["TP"],
FN=statistic_result["FN"],
ACC=statistic_result["ACC"],
POP=statistic_result["POP"],
P=statistic_result["P"],
TOP=statistic_result["TOP"],
jaccard_list=statistic_result["J"],
classes=cm.classes,
table=cm.table,
CEN_dict=statistic_result["CEN"],
MCEN_dict=statistic_result["MCEN"],
cm.matrix = cm.table
cm.normalized_table = normalized_table_calc(cm.classes, cm.table)
cm.normalized_matrix = cm.normalized_table
cm.TP = matrix_param[2]
cm.TN = matrix_param[3]
cm.FP = matrix_param[4]
cm.FN = matrix_param[5]
statistic_result = class_statistics(
TP=matrix_param[2],
TN=matrix_param[3],
FP=matrix_param[4],
FN=matrix_param[5],
classes=matrix_param[0],
table=matrix_param[1])
cm.class_stat = statistic_result
cm.overall_stat = overall_statistics(
RACC=statistic_result["RACC"],
RACCU=statistic_result["RACCU"],
TPR=statistic_result["TPR"],
PPV=statistic_result["PPV"],
F1=statistic_result["F1"],
TP=statistic_result["TP"],
FN=statistic_result["FN"],
ACC=statistic_result["ACC"],
POP=statistic_result["POP"],
P=statistic_result["P"],
TOP=statistic_result["TOP"],
jaccard_list=statistic_result["J"],
classes=cm.classes,
table=cm.table,
CEN_dict=statistic_result["CEN"],
MCEN_dict=statistic_result["MCEN"],