minerva.analysis.metrics
Submodules
Classes
Initializes a PixelAccuracy metric object. |
Package Contents
- class minerva.analysis.metrics.PixelAccuracy(dist_sync_on_step=False)
Bases:
torchmetrics.Metric
Initializes a PixelAccuracy metric object.
Parameters
- dist_sync_on_step: bool, optional
Whether to synchronize metric state across processes at each step. Defaults to False.
- compute()
Computes the pixel accuracy.
- Returns:
float: The pixel accuracy.
- Return type:
float