forse funziona

This commit is contained in:
2025-02-08 19:44:09 +01:00
parent 7c242fabfa
commit e4d41d2003
3 changed files with 11 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
#include "visualizzatore.h"
#define NUM_LAYERS 5
#define NUM_LAYERS 4
#define PERCETTRONI_LAYER_0 256
#define INPUT_LAYER_0 3072
@@ -8,10 +8,10 @@
#define INPUT_LAYER_1 256
#define PERCETTRONI_LAYER_2 64
#define INPUT_LAYER_2 128
#define PERCETTRONI_LAYER_3 10
#define PERCETTRONI_LAYER_3 1
#define INPUT_LAYER_3 64
#define PERCETTRONI_LAYER_4 1
#define INPUT_LAYER_4 10
//#define PERCETTRONI_LAYER_4 1
//#define INPUT_LAYER_4 10
#define MAX_EPOCHE 100
@@ -54,7 +54,7 @@ void main() {
//inizializzo layer 3
rete_neurale.layers[3] = inizializza_layer(PERCETTRONI_LAYER_3, INPUT_LAYER_3);
//inizializzo layer ULTIMO
rete_neurale.layers[4] = inizializza_layer(PERCETTRONI_LAYER_4, INPUT_LAYER_4);
//rete_neurale.layers[4] = inizializza_layer(PERCETTRONI_LAYER_4, INPUT_LAYER_4);
printf("Numero immagini: %d\n",set.size);
@@ -64,7 +64,7 @@ void main() {
int corrette = 0;
for(int indice_set = 0; indice_set < 100; indice_set++) {
for(int indice_set = 0; indice_set < 1000; indice_set++) {
//printf("\timmagine: %d\n", indice_set);