deeplabcut.core.metrics.identity
Implementations of methods to compute identity prediction accuracy.
Functions:
| Name | Description |
|---|---|
compute_identity_scores |
FIXME: With DLCRNet all heatmap "peaks" above 0.01 were kept, with 1 keypoint and |
compute_identity_scores
compute_identity_scores(
individuals: list[str],
bodyparts: list[str],
predictions: dict[str, ndarray],
identity_scores: dict[str, ndarray],
ground_truth: dict[str, ndarray],
) -> dict[str, float]
With DLCRNet all heatmap "peaks" above 0.01 were kept, with 1 keypoint and
1 identity score map per peak. Then, for each ground truth keypoint, we selected the prediction closest to it, and evaluated the identity score in that position. This is no longer the case, as we're now evaluating after assembly. So we only have num_individuals assemblies.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
list[str]
|
|
required |
|
list[str]
|
|
required |
|
dict[str, ndarray]
|
(num_assemblies, num_bodyparts, 3) |
required |
|
dict[str, ndarray]
|
(num_assemblies, num_bodyparts, num_individuals) |
required |
|
dict[str, ndarray]
|
(num_individuals, num_bodyparts, 3) |
required |
Returns: