feat(training): track and display CER per training run

After each training run, the Character Error Rate (CER = 1 - accuracy),
loss, accuracy, and epoch count are now stored on the OcrTrainingRun
record and shown in the training history table.

Also adds the missing POST /api/ocr/segtrain endpoint and the
triggerSegTraining service method so the segmentation training card
can actually trigger training.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-13 19:01:10 +02:00
parent a99afef319
commit 22954f348a
12 changed files with 118 additions and 14 deletions

View File

@@ -0,0 +1,5 @@
ALTER TABLE ocr_training_runs
ADD COLUMN cer DOUBLE PRECISION,
ADD COLUMN loss DOUBLE PRECISION,
ADD COLUMN accuracy DOUBLE PRECISION,
ADD COLUMN epochs INT;