Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get training accuracy? #23

Open
aanand300 opened this issue Dec 3, 2021 · 4 comments
Open

How to get training accuracy? #23

aanand300 opened this issue Dec 3, 2021 · 4 comments

Comments

@aanand300
Copy link

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 both counter[0] and counter[1] have same values. Can anyone please help to fix this issue?
Thanks

@aanand300
Copy link
Author

aanand300 commented Dec 3, 2021

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

@snwagh
Copy link
Owner

snwagh commented Dec 4, 2021

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.

@aanand300
Copy link
Author

Thanks. I will try this and post here in case I face any issue

@snwagh
Copy link
Owner

snwagh commented Feb 28, 2022

This might be related: #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants