14 lines
198 B
Python
14 lines
198 B
Python
from dataclasses import dataclass, field
|
|
|
|
@dataclass(slots=True)
|
|
class PredictionResult:
|
|
|
|
label: str
|
|
|
|
score: float
|
|
|
|
approved: bool
|
|
|
|
raw_scores: list[float]
|
|
|
|
reason: str = field(default="") |