ottimizzato il codice, messo relu(ma non attivato), pronto per prossima sessione di test
This commit is contained in:
Binary file not shown.
@@ -78,6 +78,18 @@ Dataset *get_dataset(char *path_mnist, char *path_categoria)
|
||||
(*set).istanze = istanze;
|
||||
|
||||
fclose(file);
|
||||
|
||||
//Trasformo tutto in 0 e 1
|
||||
|
||||
/* for(int indice_immagine = 0; indice_immagine < set->size; indice_immagine++) {
|
||||
for(int indice_byte = 0; indice_byte < N_INPUTS; indice_byte++) {
|
||||
if(set->istanze[indice_immagine].dati[indice_byte] >= 128)
|
||||
set->istanze[indice_immagine].dati[indice_byte] = 1;
|
||||
else
|
||||
set->istanze[indice_immagine].dati[indice_byte] = 0;
|
||||
}
|
||||
} */
|
||||
|
||||
return set;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user