From fee8fe73f2b8dc25f9fdd5ab9e9c57d09f5b5df7 Mon Sep 17 00:00:00 2001 From: josc146 Date: Sun, 9 Jul 2023 13:33:06 +0800 Subject: [PATCH] fix loss parser --- frontend/src/pages/Train.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/Train.tsx b/frontend/src/pages/Train.tsx index 9b174ac..e6caf4f 100644 --- a/frontend/src/pages/Train.tsx +++ b/frontend/src/pages/Train.tsx @@ -52,7 +52,7 @@ ChartJS.register( ); const parseLossData = (data: string) => { - const regex = /Epoch (\d+):\s+(\d+%)\|[\s\S]*\| (\d+)\/(\d+) \[(\d+:\d+)<(\d+:\d+),\s+([\S]*), loss=(\S+),[\s\S]*\]/g; + const regex = /Epoch (\d+):\s+(\d+%)\|[\s\S]*\| (\d+)\/(\d+) \[(\S+)<(\S+),\s+(\S+), loss=(\S+),[\s\S]*\]/g; const matches = Array.from(data.matchAll(regex)); if (matches.length === 0) return false;