traccuracy.metrics._results

Module Contents

Classes

Results

The Results object collects information about the pipeline used

class traccuracy.metrics._results.Results(results: dict, matcher_info: dict | None, metric_info: dict, gt_name: str | None = None, pred_name: str | None = None)[source]

The Results object collects information about the pipeline used to generate the metric results

Parameters:
  • results (dict) – Dictionary with metric output

  • matcher_info (dict) – Dictionary with matcher name and parameters

  • metric_info (dict) – Dictionary with metric name and parameters

  • gt_name (optional, str) – Name of the ground truth data

  • pred_name (optional, str) – Name of the predicted data

property version: str

Return current traccuracy version

to_dict() dict[str, Any][source]

Returns all attributes that are not None as a dictionary

Returns:

Dictionary of Results attributes

Return type:

dict