Parse single epoch training curves

This commit is contained in:
2026-06-30 23:42:11 +08:00
parent 3e9e8ba6f5
commit 6b3a3d7c6d
3 changed files with 39 additions and 12 deletions

View File

@@ -183,7 +183,7 @@ def parse_training_curve(path: Path, max_points: int = 300) -> dict | None:
y = _as_float(row.get(name))
if y is not None:
points.append({"x": x, "y": y})
if len(points) >= 2:
if points:
values = [point["y"] for point in points]
series.append({"name": name, "points": points, "last": values[-1], "min": min(values), "max": max(values)})
if not series: