addestrato al 97%
This commit is contained in:
Binary file not shown.
+3
-2
@@ -1,10 +1,11 @@
|
||||
#include "percettroni.h"
|
||||
|
||||
#define EPOCHE 100
|
||||
#define EPOCHE 500
|
||||
|
||||
void main() {
|
||||
//input, layers, perc iniz, perc fin
|
||||
ReteNeurale rete = inizializza_rete_neurale(N_INPUTS, 10, 256, 10);
|
||||
//ReteNeurale rete = inizializza_rete_neurale(N_INPUTS, 10, 256, 10);
|
||||
ReteNeurale rete = *caricaReteNeurale(file_pesi);
|
||||
//stampa_pesi_rete(rete);
|
||||
|
||||
//Dataset xor = *crea_dataset_xor();
|
||||
|
||||
+1
-2
@@ -21,7 +21,7 @@ typedef unsigned char byte;
|
||||
|
||||
double LRE = 0.1;
|
||||
double soglia_sigmoide = 0.5;
|
||||
#define TOLLERANZA 95
|
||||
#define TOLLERANZA 97
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@@ -519,7 +519,6 @@ void correggi_pesi_percettrone_byte(Percettrone *p, Istanza input, double gradie
|
||||
char addestra(ReteNeurale *rete_neurale, Dataset set)
|
||||
{
|
||||
int corrette = 0;
|
||||
|
||||
for (int indice_set = 0; indice_set < set.size; indice_set++)
|
||||
{
|
||||
byte output_corretto = set.istanze[indice_set].classificazione;
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user