traccuracy.matchers._base
Module Contents
Classes
The Matcher base class provides a wrapper around the compute_mapping method |
Attributes
- traccuracy.matchers._base.logger
- class traccuracy.matchers._base.Matcher[source]
The Matcher base class provides a wrapper around the compute_mapping method
Each Matcher subclass will implement its own kwargs as needed. In use, the Matcher object will be initialized with kwargs prior to running compute_mapping on a particular dataset
- property info: dict[str, Any]
Dictionary of Matcher name and any parameters
- compute_mapping(gt_graph: traccuracy._tracking_graph.TrackingGraph, pred_graph: traccuracy._tracking_graph.TrackingGraph) traccuracy.matchers._matched.Matched[source]
Run the matching on a given set of gt and pred TrackingGraph and returns a Matched object with a new copy of each TrackingGraph
- Parameters:
gt_graph (traccuracy.TrackingGraph) – Tracking graph object for the gt
pred_graph (traccuracy.TrackingGraph) – Tracking graph object for the pred
- Returns:
Matched data object
- Return type:
matched (traccuracy.matchers.Matched)
- Raises:
ValueError – gt and pred must be a TrackingGraph object