Multilayer neuron network
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user