modosaic.core.boundary_alignment_stats¶
modosaic.core.boundary_alignment_stats ¶
BoundaryAlignmentStats
dataclass
¶
BoundaryAlignmentStats(valid=False, precision=0.0, recall=0.0, f1=0.0, iou=0.0)
Boundary overlap statistics returned by edge-alignment validators.
Attributes:
| Name | Type | Description |
|---|---|---|
valid |
bool
|
Whether the statistic could be computed. |
precision |
float
|
Fraction of predicted boundary pixels matching a target boundary. |
recall |
float
|
Fraction of target boundary pixels matched by predictions. |
f1 |
float
|
Harmonic mean of precision and recall. |
iou |
float
|
Intersection-over-union between boundary regions. |