BinaryPrecision metric
Bases: BinaryFBetaScore
Computes precision on binary structures.
Mirrors BinaryF1Score. Each field of y_true and y_pred should be
a boolean or a float in [0, 1]; floats are thresholded against
threshold. Per-field precision is TP / (TP + FP), aggregated via
average.
Example:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
average
|
str
|
One of |
None
|
threshold
|
float
|
Threshold for deciding whether a float value is
|
0.5
|
name
|
str
|
(Optional) string name of the metric instance. |
'binary_precision'
|
in_mask
|
list
|
(Optional) list of keys to keep to compute the metric. |
None
|
out_mask
|
list
|
(Optional) list of keys to remove to compute the metric. |
None
|
in_mask_pattern
|
str
|
(Optional) Regex pattern. |
None
|
out_mask_pattern
|
str
|
(Optional) Regex pattern. |
None
|