#ifndef IRL_NN_MNIST_H #define IRL_NN_MNIST_H typedef struct { int x; int y; } coordinate; typedef struct { int N; int n_visible; int n_hidden; double **W; double *hbias; double *vbias; coordinate *position; } NN; #define IMAGE_FILE "train-images-idx3-ubyte" #define LABEL_FILE "train-labels-idx1-ubyte" #define MNIST_NUM_IMAGES 60000 #define MNIST_SIZE 784 #define RAND_SEED 20140316 void NN__construct(NN*, int, int, int, double**, double*, double*); void NN__destruct(NN*); #endif