(metrics)
| 920 | } |
| 921 | |
| 922 | function formatTimelineMetrics(metrics) { |
| 923 | if (!metrics) return ""; |
| 924 | const segments = []; |
| 925 | if (Number.isFinite(metrics.testAccuracy)) { |
| 926 | segments.push(`Test acc: ${formatDecimal(metrics.testAccuracy * 100, 2)}%`); |
| 927 | } |
| 928 | if (Number.isFinite(metrics.avgTrainingLoss)) { |
| 929 | segments.push(`Avg loss: ${formatDecimal(metrics.avgTrainingLoss, 4)}`); |
| 930 | } |
| 931 | return segments.join(" • "); |
| 932 | } |
| 933 | |
| 934 | function setupTimelineSlider(timelineSnapshots, options = {}) { |
| 935 | const overlay = document.getElementById("timelineOverlay"); |
no test coverage detected