CategoricalPrecision metric
Bases: CategoricalFBetaScore
Computes precision on categorical (list / label) structures.
Mirrors CategoricalF1Score. Supports the optional labels= parameter:
when provided, accumulation is per-label (sklearn-style) and
result() returns a {label: precision} dict for average=None.
Example:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
average
|
str
|
One of |
None
|
labels
|
list
|
(Optional) Explicit list of label names to track. |
None
|
name
|
str
|
(Optional) string name of the metric instance. |
'categorical_precision'
|
in_mask
|
list
|
(Optional) list of keys to keep. |
None
|
out_mask
|
list
|
(Optional) list of keys to remove. |
None
|
in_mask_pattern
|
str
|
(Optional) Regex pattern. |
None
|
out_mask_pattern
|
str
|
(Optional) Regex pattern. |
None
|