impostato mnist e 100 epoche su deepseek
This commit is contained in:
Binary file not shown.
@@ -4,15 +4,16 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "cifar-10/cifar10_manager.h"
|
//#include "cifar-10/cifar10_manager.h"
|
||||||
|
#include "mnist/mnist_manager.h"
|
||||||
|
|
||||||
// Costanti configurabili
|
// Costanti configurabili
|
||||||
#define N_LAYERS 3 // Numero di layer (input, hidden, output)
|
#define N_LAYERS 3 // Numero di layer (input, hidden, output)
|
||||||
#define N_NEURONI_HIDDEN 128 // Numero di neuroni nei layer nascosti
|
#define N_NEURONI_HIDDEN 128 // Numero di neuroni nei layer nascosti
|
||||||
#define N_NEURONI_OUTPUT 1 // Un solo neurone di output (binario)
|
#define N_NEURONI_OUTPUT 1 // Un solo neurone di output (binario)
|
||||||
#define N_EPOCHE 10 // Numero di epoche di addestramento
|
#define N_EPOCHE 100 // Numero di epoche di addestramento
|
||||||
#define LEARNING_RATE 0.01 // Tasso di apprendimento
|
#define LEARNING_RATE 0.01 // Tasso di apprendimento
|
||||||
#define N_INPUTS 3072 // Dimensioni di un'immagine CIFAR-10 (32x32x3)
|
#define N_INPUTS 784 // Dimensioni di un'immagine CIFAR-10 (32x32x3)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
double *pesi;
|
double *pesi;
|
||||||
@@ -204,7 +205,7 @@ int main() {
|
|||||||
|
|
||||||
// Caricamento del dataset (da implementare)
|
// Caricamento del dataset (da implementare)
|
||||||
Dataset *dataset;
|
Dataset *dataset;
|
||||||
dataset = get_dataset("cifar-10/data_batch_1.bin");
|
dataset = get_dataset("mnist/train-images.idx3-ubyte", "mnist/train-labels.idx1-ubyte");
|
||||||
// dataset = carica_dataset("cifar10.bin");
|
// dataset = carica_dataset("cifar10.bin");
|
||||||
|
|
||||||
// Addestramento della rete
|
// Addestramento della rete
|
||||||
|
|||||||
Reference in New Issue
Block a user