actsnclass.get_snpcc_metric

actsnclass.get_snpcc_metric(label_pred: list, label_true: list, ia_flag=1, wpenalty=3)

Calculate the metric parameters used in the SNPCC.

Parameters:
  • label_pred (list) – Predicted labels
  • label_true (list) – True labels
  • ia_flag (bool (optional)) – Flag used to identify Ia objects. Default is 1.
  • wpenalty (float) – Weight given for non-Ias wrongly classified.
Returns:

  • metric_names (list) – Name of elements in metrics: [accuracy, eff, purity, fom]
  • metric_values (list) – list of calculated metrics values for each element