locpix.evaluate.metrics.aggregated_metrics#

aggregated_metrics(files_folder, save_loc, gt_label_map, add_metrics={}, metadata={})[source]#

Calculate metrics over files, where each file should represent a parquet file which is a datastruc.item

Parameters:
  • files_folder (string) – Location in memory of the

  • file (datastruc.item saved as a .parquet) –

  • save_loc (string) – where to save the calculated metrics

  • gt_label_map (dict) – dictionary where each key is an integer and the value is the associated label

  • metadata (dictionary) – Any additional metadata to save

Returns:

Dictionary containining TP, etc.

for labels

Return type:

agg_results (dict)