PredictionTypeHandler
code_loader.contract.datasetclasses.PredictionTypeHandler
@dataclass
class PredictionTypeHandler:
name: str
labels: List[str]
channel_dim: int = -1Args
Examples
Basic Usage
MNIST example
from code_loader.contract.datasetclasses import PredictionTypeHandler
prediction_type1 = PredictionTypeHandler('classes', [str(i) for i in range(10)])YOLO example
Last updated
Was this helpful?

