Multilayer neuron network
linter / quality (push) Successful in 7m10s
tests / ci (8.4) (push) Successful in 4m43s
tests / ci (8.5) (push) Successful in 4m47s

This commit is contained in:
2026-09-08 16:29:02 +02:00
parent 2f4db07918
commit 08aa04fe56
17 changed files with 630 additions and 50 deletions
@@ -8,6 +8,7 @@ import Toggle from './ui/toggle/Toggle.vue';
const props = defineProps<{
iterations: Iteration[];
isRegression: boolean;
}>();
const epochErrorOnly = ref<boolean>(false);
@@ -42,7 +43,11 @@ const datasets = computed<
};
datasets.push(dataset);
}
dataset.data.push(iteration.error);
dataset.data.push(
props.isRegression
? Math.abs(iteration.error)
: iteration.error,
);
}
exampleCountPerEpoch[iteration.epoch] = (exampleCountPerEpoch[iteration.epoch] || 0) + 1;
@@ -91,7 +96,9 @@ const datasets = computed<
plugins: {
title: {
display: true,
text: 'Nombre d\'erreurs par epoch',
text: props.isRegression
? 'Erreur de prédiction par epoch'
: 'Nombre d\'erreurs par epoch',
},
},
animation: {
@@ -104,7 +111,7 @@ const datasets = computed<
},
y: {
stacked: true,
beginAtZero: true,
beginAtZero: !props.isRegression,
grid: {
color: function (context) {
if (context.tick.value == 0) {