Open aanand300 opened 2 years ago
On further looking at code in secondary.cpp
, it seems that train_data and test_data files here are not present. Do we need to provide the dataset ourselves? If yes, can anyone please help with the format of input data? Any example or reference would be helpful
You'll have to download and parse the MNIST dataset yourself. There is some helper script provided in the old SecureNN codebase, you can use that to transform the raw MNIST into a "good format" (essentially the train_data, test_data files). You can then load pre-trained models provided in the files/preload
folder and then see if the getAccuracy()
function works.
Thanks. I will try this and post here in case I face any issue
This might be related: #29
Hi all, I was trying to get the accuracy as done in one of the previous issues #8 but I realized the NeuralNetwork::getAccuracy() function has been commented out and as a result
temp_groundTruth
is not updated. I am always getting 100% accuracy since bothcounter[0]
andcounter[1]
have same values. Can anyone please help to fix this issue? Thanks