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_info: dict | None = None, pred_info: dict | 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_info (dict) – Dictionary with ground truth graph info (name, border_margin, etc.)

  • pred_info (dict) – Dictionary with predicted graph info (name, border_margin, etc.)

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