Hi Snwagh,
In globals.h at /src file, after I change the #define MNIST false into #define MNIST true, NUM_LAYERS to 4, LOG_MINI_BATCH to 0 in #if MNIST frame, NO_OF_EPOCHS to 1, NUM_ITERATIONS to 1, then at secondary.cpp, I change for (int i = 0; i < NUM_ITERATIONS; ++i) in void test(NeuralNetwork* net) function to for (int i = 0; i < 10000; ++i). Finally, I change the network to be secureml in main.cpp and train the network with make standalone and do the test by changing
whichNetwork += " train";
train(network, config);
into
whichNetwork += " test";
test(network);
it gives me 99% accuracy which seems not correct as I just use 1 iteration (which means one piece of training data) to train the network, I changed the number of iteration but always get the same accuracy, can you give some tips for it or did I test it in wrong way?
Thanks very much!
Hi Snwagh,
In
globals.hat/srcfile, after I change the#define MNIST falseinto#define MNIST true,NUM_LAYERSto 4,LOG_MINI_BATCHto 0 in#if MNISTframe,NO_OF_EPOCHSto 1,NUM_ITERATIONSto 1, then atsecondary.cpp, I changefor (int i = 0; i < NUM_ITERATIONS; ++i)invoid test(NeuralNetwork* net)function tofor (int i = 0; i < 10000; ++i). Finally, I change the network to be secureml inmain.cppand train the network withmake standaloneand do the test by changinginto
it gives me 99% accuracy which seems not correct as I just use 1 iteration (which means one piece of training data) to train the network, I changed the number of iteration but always get the same accuracy, can you give some tips for it or did I test it in wrong way?
Thanks very much!