traccuracy.metrics._complete_tracks
Module Contents
Classes
The fraction of tracklets and lineages that are completely correctly reconstructed. |
- class traccuracy.metrics._complete_tracks.CompleteTracks(error_type: str = 'basic')[source]
The fraction of tracklets and lineages that are completely correctly reconstructed.
If the reconstruction continues beyond the ground truth track, this is NOT counted as incorrect, nor are false positive tracks penalized, making this suitable for evaluating with sparse ground truth annotations.
If a False Positive Division occurs within the ground truth track (or, for the CTC errors, a wrong semantic edge), this IS counted as incorrect.
- Parameters:
error_type (str, optional) – Whether to use “basic” or “ctc” errors for computing if tracks are correct or not. Defaults to “basic”.
The compute function returns a results dictionary with the following entries:
total_lineages- the number of connected components in the ground truth graphcorrect_lineages- the number of fully correct connected componentscomplete_lineages-correct_lineages/total_lineages, or np.nan iftotal_lineagesis 0total_tracklets- the number of tracklets in the ground truth graph, defined as the connected components of the graph after division edges are removed. Division edges are not included in the tracklets, or counted at all in the tracklet metrics.correct_tracklets- the number of fully correct trackletscomplete_tracklets-correct_tracklets/total_tracklets, or np.nan iftotal_trackletsis 0
- property info: dict[str, Any]
Dictionary with Metric name and any parameters
- compute(matched: traccuracy.matchers._matched.Matched, override_matcher: bool = False, relax_skips_gt: bool = False, relax_skips_pred: bool = False) traccuracy.metrics._results.Results
The compute methods of Metric objects return a Results object populated with results and associated metadata
- Parameters:
matched (traccuracy.matchers.Matched) – Matched data object to compute metrics on
override_matcher (bool) – If True, the metric will not validate the matcher type
relax_skips_gt (bool) – If True, the metric will check if skips in the ground truth graph have an equivalent multi-edge path in predicted graph
relax_skips_pred (bool) – If True, the metric will check if skips in the predicted graph have an equivalent multi-edge path in ground truth graph
- Returns:
- Object containing metric results
and associated pipeline metadata
- Return type: