REFACTOR - Database logic

This commit is contained in:
Urtzi Alfaro
2025-08-08 09:08:41 +02:00
parent 0154365bfc
commit 488bb3ef93
113 changed files with 22842 additions and 6503 deletions

View File

@@ -357,7 +357,7 @@ class TrainingErrorUpdate(BaseModel):
class ModelMetricsResponse(BaseModel):
"""Response schema for model performance metrics"""
model_id: str = Field(..., description="Unique model identifier")
accuracy: float = Field(..., description="Model accuracy (R2 score)", ge=0.0, le=1.0)
accuracy: float = Field(..., description="Model accuracy (R2 score)")
mape: float = Field(..., description="Mean Absolute Percentage Error")
mae: float = Field(..., description="Mean Absolute Error")
rmse: float = Field(..., description="Root Mean Square Error")