Some bugfixes and misc
linter / quality (push) Successful in 4m24s
tests / ci (8.4) (push) Successful in 4m47s
tests / ci (8.5) (push) Successful in 5m0s

This commit is contained in:
2026-09-08 20:01:52 +02:00
parent 0e177f8491
commit 69e683bcaf
13 changed files with 120 additions and 33 deletions
@@ -28,6 +28,8 @@ const datasets = computed<ErrorDataset[]>(() => {
const exampleCountPerEpoch: Record<number, number> = {};
props.iterations.forEach((iteration) => {
const error = iteration.error ?? 0;
if (!epochErrorOnly.value) {
const exampleLabel = `Exemple ${iteration.exampleIndex}`;
let dataset = datasets.find((d) => d.label === exampleLabel);
@@ -45,8 +47,8 @@ const datasets = computed<ErrorDataset[]>(() => {
}
dataset.data.push(
props.isRegression
? Math.abs(iteration.error)
: iteration.error,
? Math.abs(error)
: error,
);
}
@@ -55,7 +57,7 @@ const datasets = computed<ErrorDataset[]>(() => {
// Epoch error
epochAverageError[iteration.epoch] =
(epochAverageError[iteration.epoch] || 0) +
iteration.error ** 2 / 2;
error ** 2 / 2;
});
// Sort dataset by label (Exemple 0, Exemple 1, ...)