feat/ 导出开发容器内的数据用于评估

This commit is contained in:
Kevin
2026-04-03 14:44:46 +08:00
parent 828a29748e
commit b75edacb5f
51 changed files with 5999 additions and 57 deletions

View File

@@ -0,0 +1,17 @@
"""门禁结果序列化(供 HTTP / UI"""
from __future__ import annotations
from typing import Any
from app.features.evaluation.gating_service import GateResult
def gate_result_to_details(result: GateResult) -> dict[str, Any]:
return {
"mean_baseline_composite": result.mean_baseline_composite,
"mean_candidate_composite": result.mean_candidate_composite,
"mean_delta": result.mean_delta,
"per_case": result.per_case,
"protected_regressions": result.protected_regressions,
}