wip training
This commit is contained in:
@@ -1236,7 +1236,21 @@
|
||||
const accuracyPct = (data.metrics.accuracy * 100).toFixed(1);
|
||||
const lossVal = data.metrics.loss ? data.metrics.loss.toFixed(4) : '--';
|
||||
|
||||
document.getElementById('metric-accuracy').textContent = accuracyPct + '%';
|
||||
// CRITICAL FIX: Update live-accuracy and live-loss elements
|
||||
const liveAccuracyEl = document.getElementById('live-accuracy');
|
||||
const liveLossEl = document.getElementById('live-loss');
|
||||
if (liveAccuracyEl) {
|
||||
liveAccuracyEl.textContent = accuracyPct + '%';
|
||||
}
|
||||
if (liveLossEl) {
|
||||
liveLossEl.textContent = lossVal;
|
||||
}
|
||||
|
||||
// Also update metric-accuracy if it exists
|
||||
const metricAccuracyEl = document.getElementById('metric-accuracy');
|
||||
if (metricAccuracyEl) {
|
||||
metricAccuracyEl.textContent = accuracyPct + '%';
|
||||
}
|
||||
|
||||
// Update live banner with metrics
|
||||
const banner = document.getElementById('inference-status');
|
||||
|
||||
Reference in New Issue
Block a user