more acc stats and predictions storage. chart optimisation

This commit is contained in:
Dobromir Popov
2025-12-10 11:02:36 +02:00
parent 2fea288f62
commit 1d49269301
4 changed files with 229 additions and 12 deletions

View File

@@ -159,6 +159,11 @@
<div>Last Training: <span id="last-training-time">--</span></div>
</div>
</div>
<div class="mt-1 pt-1 border-top" style="font-size: 0.7rem;">
<div class="text-muted">Best Checkpoint:</div>
<div>Best Loss: <span id="best-checkpoint-loss" class="fw-bold text-warning">--</span></div>
<div>Best Accuracy: <span id="best-checkpoint-accuracy" class="fw-bold text-success">--</span></div>
</div>
</div>
</div>
@@ -1507,6 +1512,18 @@
}
}
// Update best checkpoint metrics
const bestLossEl = document.getElementById('best-checkpoint-loss');
if (bestLossEl && metrics.best_loss !== undefined && metrics.best_loss !== null) {
bestLossEl.textContent = metrics.best_loss.toFixed(4);
}
const bestAccuracyEl = document.getElementById('best-checkpoint-accuracy');
if (bestAccuracyEl && metrics.best_accuracy !== undefined && metrics.best_accuracy !== null) {
const accuracyPct = (metrics.best_accuracy * 100).toFixed(1);
bestAccuracyEl.textContent = accuracyPct + '%';
}
console.log(`[Online Learning] ${metrics.incremental_steps} incremental training steps completed`);
}
}