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[]),
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -34,4 +34,4 @@ export const colors = [
|
||||
] as const;
|
||||
|
||||
export const gridColor = '#444';
|
||||
export const gridColorBold = '#999';
|
||||
export const gridColorBold = '#999';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { Point } from "chart.js";
|
||||
|
||||
export type Iteration = {
|
||||
iteration: number;
|
||||
epoch: number;
|
||||
exampleIndex: number;
|
||||
weights: number[][][];
|
||||
error: number;
|
||||
@@ -10,7 +10,8 @@ export type Iteration = {
|
||||
export type Dataset = {
|
||||
label: string;
|
||||
data: DatasetPoint[];
|
||||
defaultLearningRate: number | undefined;
|
||||
defaultLearningRate?: number;
|
||||
defaultMinError?: number;
|
||||
};
|
||||
|
||||
export type DatasetPoint = {
|
||||
|
||||
Reference in New Issue
Block a user