Use correct naming for iteration and epoch
Some checks failed
linter / quality (push) Failing after 7s
tests / ci (8.4) (push) Failing after 4s
tests / ci (8.5) (push) Failing after 4s

This commit is contained in:
2026-03-21 09:46:35 +01:00
parent 6abb417430
commit a70b7670e7
8 changed files with 38 additions and 37 deletions

View File

@@ -39,8 +39,8 @@ function getPerceptronErrorsPerIteration(): ChartData<
dataset.data.push(iteration.error);
// Epoch error
epochAverageError[iteration.iteration - 1] =
(epochAverageError[iteration.iteration - 1] || 0) +
epochAverageError[iteration.epoch - 1] =
(epochAverageError[iteration.epoch - 1] || 0) +
iteration.error ** 2 / 2;
});
@@ -81,7 +81,7 @@ function getPerceptronErrorsPerIteration(): ChartData<
plugins: {
title: {
display: true,
text: 'Nombre d\'erreurs par itération',
text: 'Nombre d\'erreurs par epoch',
},
},
scales: {
@@ -96,7 +96,7 @@ function getPerceptronErrorsPerIteration(): ChartData<
color: function (context) {
if (context.tick.value == 0) {
return gridColorBold;
}
}
return gridColor;
},
@@ -106,8 +106,8 @@ function getPerceptronErrorsPerIteration(): ChartData<
}"
:data="{
labels: props.iterations.reduce((labels, iteration) => {
if (!labels.includes(`Itération ${iteration.iteration}`)) {
labels.push(`Itération ${iteration.iteration}`);
if (!labels.includes(`Époch ${iteration.epoch}`)) {
labels.push(`Époch ${iteration.epoch}`);
}
return labels;
}, [] as string[]),

View File

@@ -202,7 +202,7 @@ watch(selectedDatasetCopy, (newValue) => {
<!-- MAX ITERATIONS -->
<FormField name="max_iterations">
<FormItem>
<FormLabel>Nombre maximum d'epoch</FormLabel>
<FormLabel>Nombre maximum d'itérations</FormLabel>
<FormControl>
<Input
type="number"