Use correct naming for iteration and epoch
This commit is contained in:
@@ -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[]),
|
||||
|
||||
Reference in New Issue
Block a user